How to manage plugins for Vim?

The Vim plugin directory under ~/.vim seems messy---a plugin has different files in different directories and the files from different plugins are put together. This is hard to add/remove plugins.

Is there any better method for managing them?

asked Feb 6, 2013 by anonymous

1 Answer

Best answer

I use pathogen and am very happy with it.

After installing pathogen, any plugins you want to install can be extracted to a subdirectory under ~/.vim/bundle. These plugins will be added to the runtimepath. By this way, each plugin stays in one subdirectory and you can easily add/remove plugins.

Installation of pathogen

Installation on Linux.

mkdir -p ~/.vim/autoload ~/.vim/bundle; \
curl -Sso ~/.vim/autoload/pathogen.vim \

Then, add this to your vimrc:

execute pathogen#infect()

To regenerate help tags:


For more details, please refer to pathogen's README.

answered Mar 1, 2013 by anonymous
edited Mar 1, 2013

Please log in or register to answer this question.

Related questions

1 answer
1 answer
1 answer
asked May 25, 2014 by Eric Z Ma (44,280 points)
1 answer
1 answer
asked Jan 21, 2013 by forum (2,150 points)
Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost