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 of a current window by N columns
:resize and :vertical resize can be shortened to :res and :vert res. There are also keyboard shortcuts for changing the height and width by one: Ctrl + w, - and Ctrl + w, + adjust the height, while Ctrl w, > and Ctrl + w< adjust the width.

Both commands can also be used to set the height and the width to a specific number of rows or columns:

  • :resize N will set the height of the window to N
  • :vertical resize N will set the width of the window to N
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.221.13.173