TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Vim - Navigating files in vertical splits

55 pointsby skwpabout 13 years ago

2 comments

falcolasabout 13 years 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.<p>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.<p>Ctrl-] and Ctrl-T, once you set up tags for your project, are indispensable when traversing through code.
评论 #3694564 未加载
评论 #3696147 未加载
hesselinkabout 13 years ago
To open a tag in a tab instead of a split, I use:<p>map &#60;C-\&#62; :tab split&#60;CR&#62;:exec("tag ".expand("&#60;cword&#62;"))&#60;CR&#62;
评论 #3695983 未加载