mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 20:40:32 +01:00
Add an installation guide.
This commit is contained in:
14
README.md
14
README.md
@@ -1,4 +1,16 @@
|
||||
vimconfig
|
||||
=========
|
||||
|
||||
An attempt to normalize my Vim configuration across machines
|
||||
An attempt to normalize my Vim configuration across machines.
|
||||
|
||||
Installation
|
||||
------------
|
||||
|
||||
To install this package as your local vim configuration, do the following:
|
||||
|
||||
```
|
||||
git clone https://github.com/bertptrs/vimconfig.git ~/.vim
|
||||
~/.vim/install.sh
|
||||
```
|
||||
|
||||
This will install the correct vimrc and load the packages mentioned in bundle.
|
||||
|
||||
27
install.sh
Executable file
27
install.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f $HOME/.vimrc ]
|
||||
then
|
||||
echo "Already have a local vimrc, abort."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -f $HOME/.vim/vimrc ]
|
||||
then
|
||||
echo "Vimconfig rc not found, abort."
|
||||
exit 2
|
||||
fi
|
||||
|
||||
echo "Installing .vimrc"
|
||||
ln -s $HOME/.vim/vimrc $HOME/.vimrc
|
||||
|
||||
echo -n "Downloading dependencies..."
|
||||
cd $HOME/.vim
|
||||
|
||||
git submodule init
|
||||
git submodule update
|
||||
|
||||
echo " Done"
|
||||
|
||||
echo
|
||||
echo "Installation finished."
|
||||
Reference in New Issue
Block a user