Vim Tips Wiki
(Adjust previous/next navigation)
(Change <tt> to <code>, perhaps also minor tweak.)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
 
{{TipImported
 
{{TipImported
 
|id=457
 
|id=457
|previous=453
+
|previous=452
 
|next=458
 
|next=458
|created=April 16, 2003
+
|created=2003
 
|complexity=basic
 
|complexity=basic
 
|author=PopEsc
 
|author=PopEsc
 
|version=6.0
 
|version=6.0
 
|rating=7/4
 
|rating=7/4
|category1=
+
|category1=Navigation
 
|category2=
 
|category2=
 
}}
 
}}
  +
{{Dodgy|this feature is built-in with the CTRL_] and CTRL_} commands}}
 
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-\.
 
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-\.
   

Latest revision as of 07:51, 11 July 2012

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>_

Comments[]

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 ]'.