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 strings. You can do some kind of global search and replace using the Vim arglist like this (source) : :args app/views/*/* :argdo %s/, :expire.*)/)/ge | update But instead of using args, I would prefer to do a search via Ack and then