How to increase the vertical split window size in Vim

后端 未结 9 1676
抹茶落季
抹茶落季 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:25

    This is what I am using as of now:

    nnoremap  = :exe "resize " . (winheight(0) * 3/2)
    nnoremap  - :exe "resize " . (winheight(0) * 2/3)
    nnoremap  0 :exe "vertical resize " . (winwidth(0) * 3/2)
    nnoremap  9 :exe "vertical resize " . (winwidth(0) * 2/3)
    

提交回复
热议问题