Ctrl + ] is to jump to the definition. Ctrl + T is to go back. What's the opposite of Ctrl + T?
Asked
Active
Viewed 3,057 times
2 Answers
9
:help tag-stack
:[count]po[p][!] Jump to [count] older entry in tag stack (default 1).
See |tag-!| for [!]. {not in Vi}
:[count]ta[g][!] Jump to [count] newer entry in tag stack (default 1).
See |tag-!| for [!]. {not in Vi}
You can also use ctrl + i
and ctrl + o
to move forwards and backwards respectively through the jump list. This works with tag commands since they count as jump movements.
So: jump to a tag ctrl + ]
jump back: ctr + o
jump to tag again ctrl + i
:help jump-motions

bc17
- 181
- 2
-
It's worth noting that `CTRL + i` is the same as `tab` (for most terminals). – too much php May 25 '10 at 21:55
-
1But ctrl + i does not seem to update the marker in the tag stack shown via `:tags`. – Alexander Bird May 01 '12 at 04:25
6
The :tag
command will move you down the tag stack. It is not bound to a key combination, but you could map it yourself in your .vimrc file.

Dave Kirby
- 25,806
- 5
- 67
- 84