How can I close a buffer without closing the window?

前端 未结 16 840
鱼传尺愫
鱼传尺愫 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 14:08

    To 'close' a view, use :hid[e]. Works if you have managed to split the viewport or opened multiple files. You can't hide the last buffer on display.

    1 Further tip that helped me: use :e ./path/to/file.work to open a file in viewport without splitting the window.

    P.S. At two days into vim I still have trouble finding the precise help commands. Hopefully this will help someone else keep working until they really get time to understand vim.

提交回复
热议问题