47

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?

1

8 Answers 8

51

There is a new splendid tool, vundle, found here : https://github.com/gmarik/vundle

It is Awesome, like a wedding of pathogen with git.

5
  • 2
    If 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
  • 1
    But... What if the plugin doesn't exist in git... What if it is svn? or hg?
    – trusktr
    Commented Apr 7, 2013 at 8:23
  • Can vundle handle those cases?
    – trusktr
    Commented Apr 7, 2013 at 8:24
  • 2
    It 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.
    – Drasill
    Commented 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.
    – vesperto
    Commented Oct 28, 2016 at 16:13
34

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.

2
6

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.

1

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

1

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.

2
  • 1
    I 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?
    – Patrick
    Commented May 9, 2011 at 20:44
  • 404 on the example link.
    – labyrinth
    Commented Oct 24, 2016 at 14:24
1

Check out NeoBundle, the ultimate package manager for vim. It's a fork of Vundle.

1
  • NeoBundle ended. Should it be also removed from answers?
    – kworr
    Commented Nov 1, 2017 at 19:50
0

I use this script for updating and removing vim pathogen plugins

0

With NeoBundle fall Dein takes it place with features like:

  • being faster;
  • async support;
  • probably would add support for hg and svn.

Not the answer you're looking for? Browse other questions tagged or ask your own question.