What's the best way to manage Vim plugins? Some plugins use Vimball, but I read somewhere that it was seriously broken, and manually dropping each plugin into ~/.vim/ results in a mess of files that are near impossible to update or organise. Is there a plugin-manager for Vim that functions similarly to Linux package managers? Or can plugins be reorganised into their own directories to make administering them easier?
8 Answers
There is a new splendid tool, vundle, found here : https://github.com/gmarik/vundle
It is Awesome, like a wedding of pathogen with git.
-
2If you like vundle you should check out NeoBundle: github.com/Shougo/neobundle.vim. It's a fork of vundle that has more features and addresses some performance concerns. Commented Nov 24, 2012 at 6:14
-
1But... What if the plugin doesn't exist in git... What if it is svn? or hg?– trusktrCommented Apr 7, 2013 at 8:23
-
-
2It seems it doesn't handle these cases. Most of the time, scripts are mirrored on vim-scripts.org/vim/scripts.html so that you only have to supply the script name in your vimrc.– DrasillCommented Apr 8, 2013 at 13:50
-
Even with its file:// syntax it still wants to fetch from github, which may be blocked in corporate networks... should use the .zip.– vespertoCommented Oct 28, 2016 at 16:13
To reorganize plugins in their own directories, pathogen is quite popular.
See a blog post detailing the installation or a Vimcast from Drew Neil.
This is what I actually use. It basically puts each plugin in its separate directory, so you can easily add or remove them.
-
1
-
Steve Losh has an article about this and more stevelosh.com/blog/2010/09/coming-home-to-vim Commented Feb 5, 2011 at 12:22
I personally prefer vim-addon-manager: it installs each plugin into separate directory, is able to download and update them. Documentation of vim-addon-manager contains some references to related projects, you may also want to try them.
Matthew Weier O'Phinney, PHP Zend Framework project lead, writes a little about it. Maybe you will find it useful: http://weierophinney.net/matthew/archives/249-Vim-Toolbox,-2010-Edition.html
Pathogen has already been mentioned as a way of managing plugins.
A way of enhancing this is to add the extra plugins as git submodules (or whatever your VCS of choice is). This makes it easier to keep up to date, and easier to replicate when using other machines.
Here is an example from github.
-
1I like the idea of using git to manage the plugins, but the github example is not very self-explanatory to me. Can you please elaborate more?– PatrickCommented May 9, 2011 at 20:44
-