How to increase the vertical split window size in Vim

molicule picture molicule · Dec 6, 2010 · Viewed 107.3k times · Source

: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?

Answer

Herbert Sitz picture Herbert Sitz · Dec 6, 2010

CTRL-W >

and

CTRL-W <

to make the window wider or narrower.