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.
:bufdo %s/old/new/g
Use :bufdo to execute a command in every buffer. :bufdo %s/old/new/g | update substitutes text and saves in all open buffers.