vimtricks.wiki Concise Vim tricks, one at a time.

How do you delete all hidden buffers in Vim?

Answer

:call DeleteHiddenBuffers()

Explanation

Define a function or use a plugin. A common approach: :bufdo if &bufhidden == '' | bdelete | endif. No built-in single command exists.

Next

How do I visually select a double-quoted string including the quotes themselves?