I am using the Ack plugin in Vim, which helps me to quickly search for strings in my project. However, sometimes I want to replace all or some occurrences of the found strin
I use MacVim (activated with mvim in a shell). I pipe the results of ack to mvim:
mvim
ack
mvim -f $(ack -l $@)
Then in MacVim, I search/replace using bufdo:
bufdo
:bufdo %s/SEARCH/REPLACE/gce | update
Omit the c option if confirmation is not needed.
c