jer*_*oen 129
使用Pathogen时禁用插件的最简单方法是在启动病原体之前将其捆绑名称添加到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()
Run Code Online (Sandbox Code Playgroud)
更新:Pathogen支持的另一种方法是简单地重命名要禁用的包的目录,使其以波浪号(〜)结束.因此,要禁用该autocomplpop捆绑包,只需将其重命名为autocomplpop~.
fra*_*ous 36
vim -u NONE -N将加载vim没有插件,没有.vimrc的设置.然后你可以:source /path/to/plugin/you-want.vim在vim里面加载你想要加载的一个插件.
| 归档时间: |
|
| 查看次数: |
17035 次 |
| 最近记录: |