|
123456789101112131415161718192021222324252627 |
- #!/bin/bash
-
- if [ -f "$HOME/.vimrc" ]; then
- mv $HOME/.vimrc $HOME/vimrc.old
- echo "There was already a .vimrc file, renamed to vimrc.old"
- fi
- if [ -d "$HOME/.vim" ]; then
- mv $HOME/.vim $HOME/vim.old
- echo "There was already a .vim folder, renamed to vim.old"
- fi
- if [ -f "$HOME/.gvimrc" ]; then
- mv $HOME/.gvimrc $HOME/gvimrc.old
- echo "There was already a .gvimrc file, renamed to gvimrc.old"
- fi
-
- cp -r vim $HOME/.vim
- cp vimrc $HOME/.vimrc
- cp gvimrc $HOME/.gvimrc
-
- echo "Installing Vundle"
- git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
-
- echo "Installing the plugins"
- vim +PluginInstall +qall
-
- echo
- echo "You're all set!"
|