简体   繁体   English

什么(如果有的话)是Vim中Tab键的默认功能?

[英]What (if anything) is the default functionality of the Tab key in Vim?

I've been using Vim for a while now, and it's struck me as odd that an editor with such a focus on reducing keystrokes would leave a large, easily-reachable key such as Tab unbound. 我一直在使用Vim已经有一段时间了,让我感到奇怪的是,一个专注于减少键击的编辑器会留下一个很大的,易于访问的键,如Tab未绑定。

Tab键

It's huge, it's right under my left pinky, and it's just sitting there . 这是巨大的,它在我左边的小指下,而它只是坐在那里 I feel a little silly even asking this question, but I feel like I'm missing something. 即使问这个问题我也觉得有点傻,但我觉得我错过了什么。

Is there some reason <Tab> is left without a predefined purpose in Normal and Visual modes -- perhaps some backward compatibility or edge case I'm not aware of? 是否有一些原因<Tab>在正常和可视模式下没有预定义的目的 - 可能是一些我不知道的向后兼容或边缘情况? Should I just go ahead and make use of it in my own Vim configuration without fear, or is this a bad idea? 我是否应该继续在我自己的Vim配置中使用它而不用担心,或者这是一个坏主意?

Tab and CTRL-I are the same in Vim, and it's used to go through the jump list (opposite is CTRL-O). Tab和CTRL-I在Vim中是相同的,它用于遍历跳转列表(对面是CTRL-O)。

From the documentation ( :help <tab> ): 从文档( :help <tab> ):

<Tab>       or                  *CTRL-I* *<Tab>*
CTRL-I          Go to [count] newer cursor position in jump list
                (not a motion command).
                In a |quickfix-window| it takes you to the position of
                the error under the cursor.
                {not in Vi}
                {not available without the |+jumplist| feature}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM