当我想在vim中打开一个文件时,输入:e查看磁盘上的目录(set wildmenu)。 Vim显示了我的目录列表,然后我多次按Tab键选择我需要的目录,并且当我选择该目录时(vim突出显示它),我应该如何在当前级别停止完成并进入该目录?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."
怎么做,在命令行模式?
谢谢,正是我所搜索的。 – 2012-04-19 05:22:18
请注意,ctrl-D具有相同的效果,但也会列出文件夹的内容。更一般地说,它将“列出与光标前面的模式相匹配的名称”(请参阅:help c_ctrl-D)。 – 2012-04-19 07:56:17
@弗朗索瓦感谢队友!我更新了我的回答,以反映你的建议 – 2012-04-19 08:07:00