How do I close all buffers that aren't shown in a window in vim?

后端 未结 5 1676
野趣味
野趣味 2020-12-23 16:23

I have a horde of buffers open in vim, with only a few of them open in split windows or on other tabs. Is there a way to close all but the ones that are currently visible i

5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-23 17:15

    There's a plugin that does exactly this and a bit more!

    Check out close-buffers.vim

提交回复
热议问题