Skip to content

Comment on Vim - Navigating files in vertical splits

Comments

The article mentions using Ctrl-O for navigating backwards in your jumps, but much more useful for going through tags (Ctrl-]) is Ctrl-T. This way, you can dive into a tag, go anywhere in that file (or subsequent files), and Ctrl-T will pop you back to where you followed the tag from.

If you have ambiguous tags (such as an open() method that is found across several different classes and files), you can use :ts to pick the right method to go to, and not lose your tag navigation stack.

Ctrl-] and Ctrl-T, once you set up tags for your project, are indispensable when traversing through code.

Nice, I didn't know Ctrl-T. I usually use ^ or g; to go back.

What's the equivalent for emacs? I usually just M-, til I get back

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.