Increase Window Size VIM Command

How to use Increase Window Size Command in Linux VIM editor?

Explanation


<count>Ctrl+w + command is used to increase the horizontal split window size in vim editor. Count specifies number of lines to be increased.

Usage:

<count>Ctrl+w +

Example:

  • Open the 'one.txt' file
    $ vim one.txt
  • Open the file 'two.txt' in the split window
    Enter :split two.txt
    increase window size
  • Now increase the horizontal split window size by 9 lines.
    Press 9 Ctrl+w +
    increase window size

Ask Questions

Ask Question