Vim: Close All Buffers But This One

前端 未结 13 2339
别那么骄傲
别那么骄傲 2020-12-22 15:04

How can I close all buffers in Vim except the one I am currently editing?

13条回答
  •  萌比男神i
    2020-12-22 15:56

    Note: As mentioned in the comments, this closes windows and not buffers.

    By using

    :on[ly][!]
    

    and

    :h only
    

提交回复
热议问题