Isaac Sloan - Web Developer, Photographer, Musician and Citizen of Earth
Banner700

Vim Find and Replace in Project: Episode 2

October 06, 2013

A while I ago I posted about an efficient way to do find and replace in files.

:args `ack -l keywords`
:argdo %s/keywords/replacement/ge | update
Vim Find and Replace in Project: Episode 2

Vim: Find/Replace in projects using ack

November 30, 2012

Since moving to vim from Sublime Text 2 the one thing I have been less than happy with is find and replace in files. This seems to be the accepted solution:

:args app/views/*/*
:argdo %s/search/replace/ge | update
Vim: Find/Replace in projects using ack