我想我有一个插件的错误。我想只加载这个插件,而不必删除我的病原体的bundle文件夹中的所有其他bundle,以进行调试。
可能吗?
在使用Pathogen时禁用插件的最简单的方法是在启动病原体之前将其bundle名添加到g:pathogen_disabled变量。
所以一个例子从我自己的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〜。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。