My personal Vim configuration.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
768 B

  1. #!/bin/bash
  2. if [ -f "$HOME/.vimrc" ]; then
  3. rm -rf $HOME/vimrc.old 2>&1
  4. mv $HOME/.vimrc $HOME/vimrc.old
  5. echo "There was already a .vimrc file, renamed to vimrc.old"
  6. fi
  7. if [ -d "$HOME/.vim" ]; then
  8. rm -rf $HOME/vim.old 2>&1
  9. mv $HOME/.vim $HOME/vim.old
  10. echo "There was already a .vim folder, renamed to vim.old"
  11. fi
  12. if [ -f "$HOME/.gvimrc" ]; then
  13. rm -rf $HOME/gvimrc.old 2>&1
  14. mv $HOME/.gvimrc $HOME/gvimrc.old
  15. echo "There was already a .gvimrc file, renamed to gvimrc.old"
  16. fi
  17. cp -r vim $HOME/.vim
  18. cp vimrc $HOME/.vimrc
  19. cp gvimrc $HOME/.gvimrc
  20. echo "Installing Vundle"
  21. git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
  22. echo "Installing the plugins"
  23. vim +PluginInstall +qall
  24. echo
  25. echo "You're all set!"