How to increase the vertical split window size in Vim

后端 未结 9 1682
抹茶落季
抹茶落季 2020-12-22 15:57

:vsplit (short form: :vs) split the Vim viewport vertically. :30vs splits the viewport, making the new window 30 characters wide. Once

9条回答
  •  清歌不尽
    2020-12-22 16:17

    In case you need HORIZONTAL SPLIT resize as well:
    The command is the same for all splits, just the parameter changes:

    - + instead of < >

    Examples:
    Decrease horizontal size by 10 columns

    :10winc -
    

    Increase horizontal size by 30 columns

    :30winc +
    

    or within normal mode:

    Horizontal splits

    10 CTRL+w -

    30 CTRL+w +

    Vertical splits

    10 CTRL+w < (decrease)

    30 CTRL+w > (increase)

提交回复
热议问题