I often find myself having 50+ files (buffers) open in Vim editor and going through all of them to do :bd (buffer delete) is a tiresome job. Insted I added this simple command :Bd which closes all buffers BUT reopens the last active one. Simple but quite useful.

command Bd %bd|e#

 

Just place the line in your .vimrc file or similar and reload it (quick and dirty way would be edit file in vim, save and do :so %). Now you can do :Bd to close all other buffers.