How do I toggle between a Vertical and a Horizontal split in vimdiff?

后端 未结 3 1574
被撕碎了的回忆
被撕碎了的回忆 2021-02-01 01:10

I already know how to use the diffopt variable to start diff mode with horizontal/vertical splits but not how to toggle between the two when I already have two file

3条回答
  •  别跟我提以往
    2021-02-01 01:31

    The following command will change a vertical split into a horizontal split:

    ctrl+w then J

    To change back to a vertical split use either:

    ctrl+w H or ctrl+w L

    For more information about moving windows:

    :h window-moving
    :h ctrl-w_J
    :h ctrl-w_K
    :h ctrl-w_H
    :h ctrl-w_L
    

提交回复
热议问题