[英]Pressing tab for word completion in command line mode switches to search mode in Vim
When loading a file, lets call it foobar.txt
, like so:加载文件时,我们将其
foobar.txt
,如下所示:
:b foo<tab>
Where <tab>
is me pressing the tab key, sometimes I am redirected from the command line ( :
) to the search prompt ( /
) but other times it works fine. <tab>
是我按下 tab 键的地方,有时我会从命令行 ( :
) 重定向到搜索提示符 ( /
),但其他时候它工作正常。 I am having trouble recreating the exact situation, but I know that I have had this same problem with at least these three commands:我无法重现确切的情况,但我知道我至少在使用这三个命令时遇到了同样的问题:
:badd
:b
:vsplit
Can anyone tell me why this would ever happen?谁能告诉我为什么会发生这种情况?
I'm guessing this is something related to your termcap (does tab do anything weird when you're in normal/insert mode?), but if it's specifically related to interacting with the filesystem it could be something else.我猜这与您的 termcap 相关(当您处于正常/插入模式时,选项卡会做任何奇怪的事情吗?),但如果它与文件系统交互特别相关,则可能是其他原因。 Have you tried a different termcap and/or using the gui version instead of the console version to see if the issue is reproducible?
您是否尝试过不同的 termcap 和/或使用 gui 版本而不是控制台版本来查看问题是否可重现?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.