I found out about Vim\'s substitute command...
:%s/replaceme/replacement/gi
And vimgrep...
:vimgrep /findme/gj project/**/*.r
One way would be to open all the files you want to run the substitution on (or any command), and run :bufdo , which will run on all open buffers.
:bufdo