4

I'm using pathogen with vim.

When I add a new plugin to the ~/.vim/bundle directory what's the fastest way to make my existing MacVim window start using it? Do I have to close it and open a new one or is there a quick command I can run?

Christian Schlensker
  • 21,708
  • 19
  • 73
  • 121

2 Answers2

2

You can use vim-addon-manager instead of pathogen. It uses bundle-like directory too, but when you call

ActivateAddons snipMate

if snipmate was not installed, VAM will install it and then source so that you don’t need to restart. You will have to add some call to vam#ActivateAddons() with 'snipMate' in arguments to the vimrc though.

ZyX
  • 52,536
  • 7
  • 114
  • 135
0

If you don't mind trying an alternative to Pathogen, check out Unbundle which lets you call :Unbundle manually to "rescan" your ~/.vim/bundle directory without closing Vim. It also supports filetype specific bundles, which can be manually rescanned in a similar fashion.

sunaku
  • 2,156
  • 19
  • 10