Vim: Close All Buffers But This One

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

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

13条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-22 15:57

    How about just:

    ctrl-w o
    

    (thanks to https://thoughtbot.com/blog/vim-splits-move-faster-and-more-naturally)

提交回复
热议问题