vim Split windows Changing the size of a split or vsplit

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Example

You may sometimes want to change the size of a split or vsplit.

To change the size of the currently active split, use :resize <new size>. :resize 30 for example would make the split 30 lines tall.

To change the size of the currently active vsplit, use :vertical resize <new size>. :vertical resize 80 for example would make the vsplit 80 characters wide.

Shortcuts

  • Ctrl + w and + increase the size of the splited window
  • Ctrl + w and - decrease the size of the splited window
  • Ctrl + w and = set an equal size to the splited windows


Got any vim Question?