vim 101 hacks
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Buyer: xiujuan lu (luxiujuan@gmail.com)<br />
Transaction ID: 85W16630AD8515549<br />
Vim <strong>101</strong> Hacks<br />
www.thegeekstuff.com<br />
Chapter 11: Vim Look and Feel, Tabs, and<br />
Windows<br />
Hack 67. Split Windows Horizontally and Vertically<br />
Split the current Window<br />
To split the current window into two windows horizontally, do the following.<br />
:split<br />
To split the current window into two windows vertically, do the following.<br />
:vsplit<br />
To close a window that was created by split, type :q to close that window.<br />
:q<br />
Open a different file in another window<br />
If you are viewing /etc/passwd and you would like to open /etc/group using a<br />
split horizontal view, do the following.<br />
:split /etc/group<br />
103