How can I close a buffer without closing the window?

前端 未结 16 994
鱼传尺愫
鱼传尺愫 2020-12-12 13:35

Vim\'s multilayered views (Windows, Buffers and Tabs) left me a little confused. Let\'s say I split the display (:sp) and then select a different buffer to display in each w

16条回答
  •  抹茶落季
    2020-12-12 13:45

    Would

    :enew
    

    do what you want? it will edit a new, unnamed buffer in the current window leaving the existing file open in any other windows.

提交回复
热议问题