" Setting up Vundle - The Vim Plugin Bundler
" Based on -
" https://github.com/fisadev/fisa-vim-config/blob/master/.vimrc
let vundleAlreadyExists=1
let vundle_readme=expand('$VIM\bundle\vundle\README.md')
if !filereadable(vundle_readme)
echo "Installing Vundle..."
echo ""
if isdirectory(expand('$VIM\bundle')) == 0
call mkdir(expand('$VIM\bundle'), 'p')
endif
execute 'silent !git clone https://github.com/gmarik/vundle "' . expand('$VIM\bundle\vundle') . '"'
let vundleAlreadyExists=0
endif
" Setting runtimepath for Vundle use
set rtp+=$VIM\bundle\vundle\
call vundle#rc('$VIM\bundle')
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" Bundles from GitHub repos:
" Gundo
Bundle 'vim-scripts/Gundo'
" Installing plugins the first time
if vundleAlreadyExists == 0
echo "Installing Bundles, please ignore key map error messages"
echo ""
" Executing below line Causes Vim to crash.
" The bug has been reported @ https://github.com/gmarik/vundle/issues/275
execute 'BundleInstall'
endif