[英]Vim: how do I disable the default LogiPat plugin?
In Vim 7.4 there's a default plugin called "LogiPat". 在Vim 7.4中有一个名为“LogiPat”的默认插件。 A command this plugin exposes is
:ELP
, which is shadowing another command I use a lot :Explore
. 这个插件公开的一个命令是
:ELP
,它影响了我经常使用的另一个命令:Explore
。 For that last command I always use :E
but since LogiPat exposes :ELP
I need to type in :Ex
which is more work. 对于最后一个命令我总是使用
:E
但是因为LogiPat暴露:ELP
我需要输入:Ex
更多的工作。
I don't use the LogiPat plugin and would like to disable it. 我不使用LogiPat插件,想要禁用它。 How do I do this?
我该怎么做呢?
I've already tried setting the following line in my .vimrc: 我已经尝试在.vimrc中设置以下行:
let g:loaded_LogiPat = "v3"
in the hopes that this would prevent LogiPat from loading. 希望这会阻止LogiPat加载。 But that did not work.
但那没用。
I'm hoping there's a simple way to do this that does not require me to move or delete the plugin from the vim/plugin
directory. 我希望有一个简单的方法可以做到这一点,不需要我从
vim/plugin
目录中移动或删除vim/plugin
。
This is a bug in the LogiPat plugin: 这是LogiPat插件中的一个错误:
" Load Once: {{{1
if &cp || exists("loaded_logipat")
finish
endif
let g:loaded_LogiPat = "v3"
It sets g:loaded_LogiPat
but checks for loaded_logipat
. 它设置
g:loaded_LogiPat
但检查loaded_logipat
。 (And the file is named logiPat.vim
. Someone's really inconsistent with their capitalization.) (并且该文件名为
logiPat.vim
。有人与他们的大小写非常不一致。)
The workaround is to set 解决方法是设置
let g:loaded_logipat = 1
in your .vimrc
. 在你的
.vimrc
。
https://groups.google.com/forum/#!topic/vim_dev/v00y1305Eng https://groups.google.com/forum/#!topic/vim_dev/v00y1305Eng
Sent a patch. 发送补丁。 You will get fix in later.
稍后你会得到修复。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.