Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase the vertical split window size in Vim

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

like image 765
molicule Avatar asked Dec 06 '10 16:12

molicule


People also ask

How do I split screen vertically in Vim?

Splitting Vim Screen VerticallyPress the keyboard combination Ctrl + w , followed by the letter 'v' .

How do I resize in vi?

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.)

How do I make vim full screen?

If you start vim with vim "+new +1b | +new +1b | +new +1b" , it will open four windows all showing the same unmodified empty buffer.


1 Answers

CTRL-W >

and

CTRL-W <

to make the window wider or narrower.

like image 83
Herbert Sitz Avatar answered Oct 01 '22 18:10

Herbert Sitz