打开文件时vim命令行完成
如何使VIM在命令模式下始终自动完成文件名?当我键入例如“:cd/ww[Tab]”时,它可以正常工作,但如果我想打开一个文件并键入“:o/ww[Tab]”,它将插入“^I”字符而不是完整字符。请尝试:打开文件时vim命令行完成,vim,Vim,如何使VIM在命令模式下始终自动完成文件名?当我键入例如“:cd/ww[Tab]”时,它可以正常工作,但如果我想打开一个文件并键入“:o/ww[Tab]”,它将插入“^I”字符而不是完整字符。请尝试: :e /ww[Tab] 使用“:e”或“:split”或其他编辑命令代替“:o” 额外的事实:vim并不真正支持“:o”命令,至少在文档中不支持。“:help:o”表示: This command is in Vi, but Vim only simulates it:
:e /ww[Tab]
使用“:e”或“:split”或其他编辑命令代替“:o”
额外的事实:vim并不真正支持“:o”命令,至少在文档中不支持。“:help:o”表示:
This command is in Vi, but Vim only simulates it:
*:o* *:op* *:open* :[range]o[pen]
Works like |:visual|: end Ex mode.
{Vi: start editing in open mode}
:[range]o[pen] /pattern/ As above, additionally move the cursor to the
column where "pattern" matches in the cursor
line.
Vim does not support open mode, since it's not really useful.
For those situations where ":open" would start open mode Vim will
leave Ex mode, which allows executing the same commands, but updates
the whole screen instead of only one line.
该命令在Vi中,但Vim仅模拟该命令:
*:o**:op**:open*:[range]o[pen]
工作方式类似于|:视觉|:结束前模式。
{Vi:在打开模式下开始编辑}
:[range]o[pen]/pattern/如上所述,另外将光标移动到
“模式”在光标中匹配的列
线路。
Vim不支持开放模式,因为它不是真正有用的。
对于“:open”将启动打开模式的情况,Vim将
离开Ex模式,该模式允许执行相同的命令,但会更新
整个屏幕,而不是只有一行。
谢谢在此之前,我一直在使用GVIM,使用所有的windows快捷键和下拉菜单,现在在控制台中工作,错过了很多东西,并试图学习。要获得更多乐趣,请尝试使用:set wildmenu