tpope / vim-pathogen

pathogen.vim: manage your runtimepath

Home Page:http://www.vim.org/scripts/script.php?script_id=2332

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable plugin without deleting it's repo

chhajedji opened this issue · comments

Hello,

How do I disable a plugin without deleting it's repository? Is there any command which can be added in .vimrc which will disable a plugin? It's very tedious to mv a plugin so as not to use it temporarily.
Thanks in advance.

" Check if a bundle is disabled. A bundle is considered disabled if its
" basename or full name is included in the list g:pathogen_blacklist or the
" comma delimited environment variable $VIMBLACKLIST.

Appending ~ to a directory name also disables the plugin:

if a:path =~# '\~$'

Can you show an example to add multiple plugins to g:pathogen_blacklist. I assume adding names to this also disables them

Adding this before calling pathogen#infect disables both mentioned plugins for me:

let g:pathogen_blacklist = [ 'commentary', 'fugitive' ]

If you keep useless vim- prefixes, use something like this:

let g:pathogen_blacklist = [ 'vim-commentary', 'vim-fugitive' ]

Thanks, that worked. Btw pls change fugitive to vim-fugitive to refer in future as I use fugitive and copied line in your previous command to check if it's working. After some time I relaised that it's not fugitive but vim-fugitive!