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

How do you run a command across all open buffers?

Answer

:bufdo %s/old/new/g

Explanation

Use :bufdo to execute a command in every buffer. :bufdo %s/old/new/g | update substitutes text and saves in all open buffers.

Next

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