a little code that I saw long time ago
put it in your .vimrc
then vundle (vim plugin manager) will automatic install if you have git
then your can happly use vundle to mange your vim plugin :)
vundle support three source :
- vim-scripts repos
- original repos on github
- non github repos
let iCanHazVundle=1
let vundle_readme=expand('~/.vim/bundle/vundle/README.md')
if !filereadable(vundle_readme)
echo "Installing Vundle.."
echo ""
silent !mkdir -p ~/.vim/bundle
silent !git clone https://github.com/gmarik/vundle ~/.vim/bundle/vundle
let iCanHazVundle=0
endif
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
Bundle 'gmarik/vundle'