rg --files-with-matches 'foo' | xargs -L 1 -o vim -c '%s/foo/bar/gc'