How to delete multiple buffers in Vim?

后端 未结 8 1418
北恋
北恋 2021-01-29 18:51

Assuming I have multiple files opened as buffers in Vim. The files have *.cpp, *.h and some are *.xml. I want to close all the XML files w

8条回答
  •  南方客
    南方客 (楼主)
    2021-01-29 19:35

    You can use to complete all matches. So if you type :bd *.xml and then hit , vim will complete the command to :bd file1.xml file2.xml file3.xml.

提交回复
热议问题