Skip to content

Instantly share code, notes, and snippets.

@neotohin
Created August 14, 2014 08:59
Show Gist options
  • Save neotohin/69d60568ffdd20486fd7 to your computer and use it in GitHub Desktop.
Save neotohin/69d60568ffdd20486fd7 to your computer and use it in GitHub Desktop.
Vundle Installation on runtime
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Setting Vundle Bundles
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set nocompatible
"filetype off
function! LoadVundle()
let vundle_installed=filereadable(expand('~/.vim/bundle/vundle/README.md'))
if vundle_installed == 0
echo "Creating backups directory..."
silent !mkdir -p ~/.vim/backups
echo "Installing Vundle.."
echo ""
silent !mkdir -p ~/.vim/bundle
silent !git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle
endif
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" Put plugin Names in here to install
" check http://vimawesome.com for instruction
if vundle_installed==0
echo vundle_installed
echo "Vundle Installed, now Installing Bundles..."
echo ""
:BundleInstall
endif
filetype plugin indent on
endfunction
call LoadVundle()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment