Hacker News new | ask | show | jobs
by falcolas 5207 days ago
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.

2 comments

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