Vim Tips Wiki
Nsg (talk | contribs)
(2 columns using vertical split)
 
Nsg (talk | contribs)
(Cagtegory)
Line 18: Line 18:
 
set scrollbind
 
set scrollbind
 
}}}
 
}}}
  +
  +
[[Category:Usage]]

Revision as of 19:27, 6 February 2009

View text file in two columns

Large wide monitors can be utilized better if text can be viewed in multiple columns.

The idea is to make wide widow (132, 160 or even more characters wide), then split it vertically, view 2 consequtive pages of the same text in left and right split widows and, finally, scrollbind them together to keep them synchronized.

This can be accomplished by issuing the following commands:

{{{ " view file in 2 columns set noscrollbind set nowrap normal mb50%zz vert split exe "normal Lma\<c-w>l'azt" set scrollbind exe "normal \<c-w>h" set scrollbind }}}