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
*.cpp
*.h
*.xml
You also can use alternatively use:
:.,$-bd[elete] " to delete buffers from the current one to last but one :%bd[elete] " to delete all buffers