Vundle allows you to specify in your vimrc what vim plugins you wish to load, and it’ll automatically download (git clone if possible) and enable vim plugins.
Vundle can get a name of a plugin as it appears in the vim plugin directory, a github “:user/:repo” style string, and even a full git url.
vimrc
1 2 3 | |
Vundle also updates your vim plugins with a simple command :
Update all your bundles
1
| |
Vundle is awesome, it saves a lot of the manual work needed in pathogen.
Even more if your installing your vim plugins manually, oy vei.
However, there’s always the fuss of getting it installed on a fresh machine. Adding these lines to your .vimrc, fixes that :
vimrc with vundle-o-maticEntire .vimrc
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | |
This will clone vundle and activate it, and install all your bundles (if vundle is not installed).
Disclaimer : Works on my machine ;)
This should work on any *nix machine, although windows 7 should cope with it too (not tested lately)
Enjoy!
转自:http://erikzaadi.com/2012/03/19/auto-installing-vundle-from-your-vimrc/