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

I have been using Vim for a while, and it seemed strange to me that an editor with such a focus on reducing keystrokes would leave a large, easily accessible key, such as Tab unbound.

Tab key

It's huge, it's right under my left little finger, and it just sits there. I feel a little silly even asking this question, but I feel that something is missing.

Is there some reason <Tab> is left without a predetermined goal in both normal and visual modes - maybe some backward compatibility or an edge case that I don't know about? Should I just go ahead and use it in my own Vim configuration without fear or is this a bad idea?

+4
source share
1 answer

Tab and CTRL-I are the same in Vim, and it was used to go through the jump list (opposite CTRL-O).

From the documentation ( :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} 
+4
source

Source: https://habr.com/ru/post/1398442/


All Articles