How to delete multiple buffers in Vim?

后端 未结 8 1467
北恋
北恋 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:46

    Very simply: use the :bd[elete] command. For example, :bd[elete] buf#1 buf#5 buf#3 will delete the buffers 1, 3, and 5.

提交回复
热议问题