当我想在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."
Run Code Online (Sandbox Code Playgroud)
如何在命令模式下执行此操作?
Pav*_*ath 11
我认为它Ctrl E处于命令模式
来自vim docs,
*complete_CTRL-E*
Run Code Online (Sandbox Code Playgroud)
完成激活后,您可以使用CTRL-E来停止它并返回到原始键入的文本.CTRL-E不会被插入.
我在我的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\
Run Code Online (Sandbox Code Playgroud)
它显示文件夹内的内容与eclipse在eclipse目录级别停止完成的区别.
| 归档时间: |
|
| 查看次数: |
1757 次 |
| 最近记录: |