Home > Coding > Adjust Vim split window size

Adjust Vim split window size

January 18th, 2012

1. Change the height (number of rows) of a split window
To increase by 10, type command

:res+10


To decrease by 10, type command

:res-10


2. Change the width (number of columns) of a split window
To increase by 10, type command

:vertical res+10

To decrease by 10, type command

:vertical res-10


Please note that some people use “+W” shortcuts to do the same job, but I am having trouble when using these shortcuts. So I just stick to changing the size by typing the commands.

Mr. One Coding

  1. No comments yet.
  1. No trackbacks yet.