Vim Tips Wiki

Follow tag in new window

1,613pages on
this wiki
Revision as of 07:51, July 11, 2012 by JohnBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Tip 457 Printable Monobook Previous Next

created 2003 · complexity basic · author PopEsc · version 6.0

If you use tags, you might want to follow a tag, but leave the current window open. The following mapping allows you to do this easily with Ctrl-\.

:map <C-\> :sp<CR><C-]><C-w>_


This creates a new window of maximal size and the original window shrinks to one line. To have the windows be of equal size, just eliminate the "<C-w>_" at the end.

Just use 'CTRL-W ]'.

Around Wikia's network

Random Wiki