当我想在
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."
如何在命令模式下执行此操作?
我认为在命令模式下它的Ctrl E.
从vim docs,
*complete_CTRL-E*
When completion is active you can use CTRL-E to stop it and go back to the
originally typed text. The CTRL-E will not be inserted.
我在我的gVim中试过这个并且它有效.
编辑:感谢@François的建议,Ctrl D做了一些额外的信息.即它在当前级别停止完成并且还显示当前选择的内容
就像是
:e eclipse-cpp-indigo-SR2-incubation-win32-x86_64\eclipse\ <Ctrl><D> artifacts.xml eclipse.exe epl-v10.html p2\ configuration\ eclipse.ini features\ plugins\ dropins\ eclipsec.exe notice.html readme\