The fastest way to get vim to use the new plugin in ~ / .vim / bundles

I am using a pathogen with vim.

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

+4
source share
2 answers

You can use vim-addon-manager instead of pathogen. It also uses a directory similar to a node, but when you call

ActivateAddons snipMate 

If snipmate has not been installed, VAM will install it and then the source so that you do not need to restart. You will have to add the vam#ActivateAddons() call with 'snipMate' to the vimrc arguments though.

+2
source

If you don't mind trying the Pathogen alternative, check out Unbundle , which allows you to manually call :Unbundle to β€œrescan” your ~/.vim/bundle directory without closing Vim. It also supports specific file type packages that can be manually copied to similar ones way.

0
source

Source: https://habr.com/ru/post/1387817/


All Articles