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.
vim-pathogen/autoload/pathogen.vim
Lines 99 to 101 in e9fb091
Appending ~
to a directory name also disables the plugin:
vim-pathogen/autoload/pathogen.vim
Line 103 in e9fb091
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
!