Open a buffer as a vertical split in VIM

后端 未结 6 1080
醉酒成梦
醉酒成梦 2021-01-29 17:35

If you are editing a file in VIM and then you need to open an existing buffer (e.g. from your buffer list: :buffers) how can you open it in a vertical split?

<
6条回答
  •  一个人的身影
    2021-01-29 18:13

    Try:

    :vert sb N
    

    which will open a left vertical split (by default, unless you have modified some options).

    To open a split to the right, on the other hand:

    :vert belowright sb N
    

提交回复
热议问题