在使用Pathogen时禁用插件的最简单的方法是在启动病原体之前将其bundle名添加到g:pathogen_disabled变量。
原文链接:https://www.f2er.com/bash/392746.html所以一个例子从我自己的vimrc
" To disable a plugin,add it's bundle name to the following list let g:pathogen_disabled = [] " for some reason the csscolor plugin is very slow when run on the terminal " but not in GVim,so disable it if no GUI is running if !has('gui_running') call add(g:pathogen_disabled,'csscolor') endif " Gundo requires at least vim 7.3 if v:version < '703' || !has('python') call add(g:pathogen_disabled,'gundo') endif if v:version < '702' call add(g:pathogen_disabled,'autocomplpop') call add(g:pathogen_disabled,'fuzzyfinder') call add(g:pathogen_disabled,'l9') endif call pathogen#infect()
更新:Pathogen支持的另一种方法是简单地重命名要禁用的捆绑包的目录,以便以结尾(〜)结束。所以要禁用autocomplpop包,只需将其重命名为autocomplpop〜。