Vim split windows Horizontally and Vertically
You need to split the current windows
Split Horizontally
-
You use
<Ctrl-w> + sor:spcolon and type sp to split the window horizontally. -
You also do
:sp somefile.txtto split window and open file in split window.
Split Vertically
-
Use
<Ctrl-w> + vor:vspcolon and type sp to split the window horizontally. -
You also do
:vsp somefile.txtto split window and open file in split window.