当我想在vim中打开一个文件时,输入:e以查看磁盘上的目录(设置了wildmenu)。Vim向我展示了我拥有的目录列表,然后我按tab键几次选择我需要的目录,当我选择了那个目录(vim会将其高亮显示)之后,该怎么停止当前级别的自动完成并进入该目录呢?
我知道在插入模式下,自动完成是ctrl-y。从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."
如何在命令模式下执行该操作?