由于插件而覆盖 vim 行为
override vim behavior due to plugin
当我使用插件 "python-mode" 并且处于插入模式时,只要在对象名称后按句点(或 "dot"),不仅会打开自动完成功能,还会打开一个帮助 window 也会在单独的 vim 面板中打开。这很烦人。我想我需要将点重新映射到它在插入模式下的默认行为?我该怎么做?
那"help"就叫"preview window";您可以在 :help preview-window
.
中阅读所有相关信息
如果您想禁用 period 的所有功能,请将以下行添加到您的 .vimrc
:
let g:pymode_rope_complete_on_dot = 0
如果你想停止window打开,你应该设置completeopt
。
'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".
noinsert Do not insert any text for a match until the user selects
a match from the menu. Only works in combination with
"menu" or "menuone". No effect if "longest" is present.
noselect Do not select a match in the menu, force the user to
select one from the menu. Only works in combination with
"menu" or "menuone".
当您键入 :set completeopt
时,您可能会得到 completeopt=menu,preview
。如您所见,preview
选项会打开预览 window。因此,您应该在 .vimrc
:
中删除该选项
set completeopt=menu
另外,你的问题有问题,可以跟踪:"Disable new window auto documentation".
当我使用插件 "python-mode" 并且处于插入模式时,只要在对象名称后按句点(或 "dot"),不仅会打开自动完成功能,还会打开一个帮助 window 也会在单独的 vim 面板中打开。这很烦人。我想我需要将点重新映射到它在插入模式下的默认行为?我该怎么做?
那"help"就叫"preview window";您可以在 :help preview-window
.
如果您想禁用 period 的所有功能,请将以下行添加到您的 .vimrc
:
let g:pymode_rope_complete_on_dot = 0
如果你想停止window打开,你应该设置completeopt
。
'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".
noinsert Do not insert any text for a match until the user selects
a match from the menu. Only works in combination with
"menu" or "menuone". No effect if "longest" is present.
noselect Do not select a match in the menu, force the user to
select one from the menu. Only works in combination with
"menu" or "menuone".
当您键入 :set completeopt
时,您可能会得到 completeopt=menu,preview
。如您所见,preview
选项会打开预览 window。因此,您应该在 .vimrc
:
set completeopt=menu
另外,你的问题有问题,可以跟踪:"Disable new window auto documentation".