【发布时间】:2012-04-30 14:28:23
【问题描述】:
当我想在 vim 中打开一个文件时,我输入 :e 来查看我磁盘上的目录(设置 wildmenu)。 Vim 显示我拥有的目录列表,然后我按 Tab 几次选择我需要的目录,当我选择该目录时(vim 突出显示它)我应该怎么做才能停止当前级别的完成并进入该目录?
我知道在插入模式完成它是 ctrl-y,来自 vim 帮助文件:
*complete_CTRL-Y*
When the popup menu is displayed you can use CTRL-Y to stop completion and
accept the currently selected entry. The CTRL-Y is not inserted. Typing a
space, Enter, or some other unprintable character will leave completion mode
and insert that typed character."
如何在命令模式下做到这一点?
【问题讨论】:
标签: vim