Created
January 13, 2012 03:09
-
-
Save danielcbaldwin/1604378 to your computer and use it in GitHub Desktop.
Install vim config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
warn() { | |
echo "$1" >&2 | |
} | |
die() { | |
warn "$1" | |
exit 1 | |
} | |
# Backup existing .vim stuff | |
echo "backing up current vim config\n" | |
for i in ~/.vim ~/.vimrc ~/.gvimrc; do [ -e $i ] && mv $i $i.old; done | |
echo "cloning vim config" | |
git clone --recursive [email protected]:danielcbaldwin/vim-config.git ~/.danielcbaldwin-vim | |
ln -s ~/.danielcbaldwin-vim/vimrc ~/.vimrc | |
ln -s ~/.danielcbaldwin-vim ~/.vim | |
mkdir ~/.vimbackup |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment