Skip to content
This repository
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 23 lines (17 sloc) 0.461 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#!/bin/sh
CURRENT_DIR=`pwd`
[[ ! -e '~/.vimundodir']] || mkdir ~/.vimundodir
rm -rf ~/.vimundodir/*

#backup the .vimrc and .vim
mv ~/.vim ~/.vimundodir/.vim
mv ~/.vimrc ~/.vimundodir

#checkout plugins
git submodule init
git submodule update

#copy the current vimrc to `~/` directory
cd ~/
cp -r "$CURRENT_DIR/vimrc" ~/.vimrc

# make .vim directory under `~/` directory and copy current file to ~/.vim
cp -r "$CURRENT_DIR" ~/.vim/

rm -rf "$CURRENT_DIR"
exit
Something went wrong with that request. Please try again.