Open a buffer as a vertical split in VIM

后端 未结 6 1063
醉酒成梦
醉酒成梦 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

    :vsp | b1

    1 being some buffer number. Use buffers to list all buffers.

    Here's some additional info on splits, if you're interested. Link

提交回复
热议问题