TIL: Replace string across multiple files in VIM
:til: :vim:
Only files which are in currently opened buffers are affected. Buffers can be populated in many ways what is out of scope of this post.
Replace what
to result
in all currently opened buffers:
:bufdo %s/what/result/g
Write changes written to the disk:
:bufdo w