I always confuse how to delete buffers from A to B like from 3 to 12. I typically write:

:bd[elete] 3,15

However the true form is:


Another useful ones

  • Delete all buffers

  • Delete buffers from the current one to the last except last one

  • Delete all buffers except current one


It may be good idea to map these to some commands and key-bindings:


" Close all buffers but current
nnoremap <C-B>c :BufCurOnly<CR>
command! BufCurOnly execute '%bdelete|edit#|bdelete#'

All done!