Tag navigation in vim

vpillai picture vpillai · Jul 22, 2013 · Viewed 10.4k times · Source

With cscope integrated Vim, I can navigate back using the ctrl-T and see the current tag stack position using :tags . But how do I go forward in the stack? The only thing I could find from the man pages is to go to the function definition (like ctrl-])

Answer

Chetan Potdar picture Chetan Potdar · Jul 22, 2013

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 to:

  • Jump to a tag: Ctrl+].
  • Jump back: Ctrl+O.
  • Jump to a tag again: Ctrl+I.