Reo*_*orx 2 python vim vim-plugin neocomplcache
我正在使用带有neocomplcache插件的Vim,它的使用提示功能虽然完成让我非常困惑.
它表现得像这样:我<C-X><C-U>在光标结束时键入os.path.,然后不仅在行下面列出了完成候选,而且包含第一个候选的docstring的水平分割出现在顶部.我的问题是:如何摆脱这个功能,以便我只在没有使用提示的情况下获得代码完成?

Reo*_*orx 10
这都是因为preview在completeopt默认情况下,您可以通过键入命令看到它的价值:set completeopt,其结果应该是completeopt=menu,preview.
我们需要的只是menu,所以切preview,在你的vimrc中添加这一行:
set completeopt-=preview
Run Code Online (Sandbox Code Playgroud)
vim帮助参考:
*'completeopt'* *'cot'*
'completeopt' 'cot' string (default: "menu,preview")
global
{not available when compiled without the
|+insert_expand| feature}
{not in Vi}
A comma separated list of options for Insert mode completion
|ins-completion|. The supported values are:
menu Use a popup menu to show the possible completions. The
menu is only shown when there is more than one match and
sufficient colors are available. |ins-completion-menu|
menuone Use the popup menu also when there is only one match.
Useful when there is additional information about the
match, e.g., what file it comes from.
longest Only insert the longest common text of the matches. If
the menu is displayed you can use CTRL-L to add more
characters. Whether case is ignored depends on the kind
of completion. For buffer text the 'ignorecase' option is
used.
preview Show extra information about the currently selected
completion in the preview window. Only works in
combination with "menu" or "menuone".
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1124 次 |
| 最近记录: |