Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. " Setting up Vundle - The Vim Plugin Bundler
  2. " Based on -
  3. "   https://github.com/fisadev/fisa-vim-config/blob/master/.vimrc
  4. let vundleAlreadyExists=1
  5. let vundle_readme=expand('$VIM\bundle\vundle\README.md')
  6. if !filereadable(vundle_readme)
  7.     echo "Installing Vundle..."
  8.     echo ""
  9.     if isdirectory(expand('$VIM\bundle')) == 0
  10.         call mkdir(expand('$VIM\bundle'), 'p')
  11.     endif
  12.     execute 'silent !git clone https://github.com/gmarik/vundle "' . expand('$VIM\bundle\vundle') . '"'
  13.     let vundleAlreadyExists=0
  14. endif
  15.  
  16. " Setting runtimepath for Vundle use
  17. set rtp+=$VIM\bundle\vundle\
  18. call vundle#rc('$VIM\bundle')
  19.  
  20. " let Vundle manage Vundle
  21. " required!
  22. Bundle 'gmarik/vundle'
  23.  
  24. " Bundles from GitHub repos:
  25.  
  26. " Gundo
  27. Bundle 'vim-scripts/Gundo'
  28.  
  29. " Installing plugins the first time
  30. if vundleAlreadyExists == 0
  31.     echo "Installing Bundles, please ignore key map error messages"
  32.     echo ""
  33.     " Executing below line Causes Vim to crash.
  34.     " The bug has been reported @ https://github.com/gmarik/vundle/issues/275
  35.     execute 'BundleInstall'
  36. endif