1
0
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:
Bert Peters
2015-01-03 22:03:07 +01:00
parent 5ec6d213a3
commit 9e2d84f357
2 changed files with 40 additions and 1 deletions

View File

@@ -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
View 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."