tags:

views:

222

answers:

2

Is it possible to place each of my vim plugins in a separate directory within my ~/.vim directory?

Unpacking everything into the same place seems kind of messy.

+1  A: 

See

help vimfiles

Plugins usually go into

.../vimfiles/plugins

directory, but if you put them in subdirectories of plugins there will be no problem. Vim will load them all.

ldigas
Doesn't seem to work for me (I'm running MacVIM) unless I add each plugin directory to the runtimepath manually.
npad
... but editing the runtimepath gets me what i want anyway, so thanks for pointing me in the right direction.
npad
Interesting. On Win and *nix works without that. Unfortunatelly, I don't have access to a Mac so I couldn't check it on that. But, as long as the problem is solved ... :)
ldigas
Of course, that doesn't work for plugins that have an autoload script.
graywh
@graywh ... Mea culpa ! 'tis true !
ldigas
+5  A: 

You want pathogen.vim. You can find it at http://www.vim.org/scripts/script.php?script_id=2332 or http://github.com/tpope/vim-pathogen

graywh