在vim中暂时禁用一些使用病原体的插件
发布时间:2020-12-15 16:54:50 所属栏目:安全 来源:网络整理
导读:我想我有一个插件的错误。我想只加载这个插件,而不必删除我的病原体的bundle文件夹中的所有其他bundle,以进行调试。 可能吗? 在使用Pathogen时禁用插件的最简单的方法是在启动病原体之前将其bundle名添加到g:pathogen_disabled变量。 所以一个例子从我自
我想我有一个插件的错误。我想只加载这个插件,而不必删除我的病原体的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?。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |