I installed this plugin a couple of weeks ago and I’m wondering where it has
been all my life. If you’re using something like
ag.vim the plugin makes it incredibly easy to
manipulate the results in the quickfix or location list. The
alone makes it worthy of an install in my opinion.
Maybe you need to narrow down the list further and you only want the files under the “baz” directory:
To load the remaining items in the quickfix list into the argument list, run
Qargs. Now you can use
argdo %s/foo/bar/g for the replacing.
I’ve only scratched the surface on what the plugin can do so make sure to head over to it’s repository on GitHub and check it out. I can’t recommend it enough!