Skip to content

Instantly share code, notes, and snippets.

@wdv4758h
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save wdv4758h/b98db48a488ed0fc8d83 to your computer and use it in GitHub Desktop.

Select an option

Save wdv4758h/b98db48a488ed0fc8d83 to your computer and use it in GitHub Desktop.
vim vundle

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.vim/README.md')
if !filereadable(vundle_readme)
    echo "Installing Vundle.."
    echo ""
    silent !mkdir -p ~/.vim/bundle
    silent !git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
    let iCanHazVundle=0
endif


set rtp+=~/.vim/bundle/Vundle.vim
call vundle#rc()

" let Vundle manage Vundle
Plugin 'gmarik/Vundle.vim'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment