O'Reilly logo

Mastering Vim by Ruslan Osipov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Resizing windows

Default 50/50 window proportions might not be exactly what you're looking for, and there are some options for changing sizes.

Ctrl + followed by = will equalize the height and width of all open windows. This is really useful when you just resized the Vim window and the height of your windows got all messed up.

The :resize command increases or decreases the height of a current window, while :vertical resize will adjust the width of the window. You can use these as follows:

  • :resize +N will increase the height of a current window by N rows
  • :resize -N will decrease the height of a current window by N rows
  • :vertical resize +N will increase the width of a current window by N columns
  • :vertical resize -N will decrease the width ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required