不包括必需的文件到VIM omnicompletion [英] do not include required files into vim omnicompletion
本文介绍了不包括必需的文件到VIM omnicompletion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我尝试自动完成SMTH在Ruby文件中,已要求'XXX'语句,它开始扫描(通过所需的文件要求,以及和文件)所需的所有文件。而且它每一次该死!
If I try to autocomplete smth in a Ruby file, that has require 'xxx' statement, it starts to scan all files required (and files required by required files as well). and it does that every freakin time!
是否有可能使Vim自动完成不扫描需要的文件或只是特别是文件路径(例如应用程序/只)?
Is it possible to make vim autocomplete to NOT scan required files or just files in particular path (e.g. app/ only)?
推荐答案
以下之一应该工作
-
:设置path =,/ myinclude1,/ myinclude2
来设置自己的include路径 -
:设置=学分,我
来禁用默认使用完成包含文件 -
:设置包含=
取消设置包含文件匹配模式
:set path=.,/myinclude1,/myinclude2
to set your own include path:set complete-=i
to disable use of included files in default completion:set include=
to unset the include file matching pattern
我会建议你使用第二个,所以 CTRL-X CTRL-I
仍然能够正常工作
I would suggest you use the second one, so CTRL-X CTRL-I
will still work correctly
这篇关于不包括必需的文件到VIM omnicompletion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文