Navigate through a stack of locations in vim

vim

Typing `` at location X brings you back to the last visited location in the text file. Hitting it again brings you back to X

This switching is similar to Ctrl+6 to open the last opened file.

But how do can I hop several levels of locations backwards (and then forward)?

I mean something like the Ctrl+] and Ctrl+T feature for navigate through the stack of visited tags.

Best Answer

While in command-mode, CtrlO and CtrlI jump through a stack of locations that you've visited.

Related Question