:vsplit
(short form: :vs
) split the Vim viewport vertically. :30vs
splits the viewport, making the new window 30 characters wide. Once this 30 char window is created, how would one change it's size to 31 or 29?
With horizontal windows Ctrl-W + increases the number of lines by one. What is the equivalent command to increase the columns by one?
Splitting Vim Screen VerticallyPress the keyboard combination Ctrl + w , followed by the letter 'v' .
Window Resize CommandsCTRL-W= tries to resize all windows to equal size. (This is also influenced by the current values of winheight and windwidth , discussed in the following section.)
If you start vim with vim "+new +1b | +new +1b | +new +1b" , it will open four windows all showing the same unmodified empty buffer.
CTRL-W >
and
CTRL-W <
to make the window wider or narrower.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With