I found out about Vim\'s substitute command...
:%s/replaceme/replacement/gi
And vimgrep...
:vimgrep /findme/gj project/**/*.r
args and argdo should do what you need, e.g.
args
argdo
:args spec/javascripts/**/*.* :argdo %s/foo/bar/g
See this page.