“Minimizing” vertical VIM window splits

前端 未结 3 1304
孤街浪徒
孤街浪徒 2021-02-15 14:34

I use horizontal and vertical window splits in religiously in VIM and up until recently, I enjoyed the comfort of two commands to effectively hide (or minimize) my horizontal sp

3条回答
  •  被撕碎了的回忆
    2021-02-15 14:58

    Try

    set winminwidth=0
    map  h|
    map  l|
    

    This doesn't move a window completely to the left or right (that's H and L), it just moves the cursor to the left (or right) window and maximizes that window horizontally.

    See :help CTRL_W_bar for more.

提交回复
热议问题