Today I Learned

hashrocket A Hashrocket project

Confirm each find replace in Vim

If you are running a find replace on the whole file, you might want to use the c flag at the end of your replace command which will make vim confirm each replace.

Example:

:s/(.*)/test/gc

h/t @joshbranchaud

See More #vim TILs
Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the Vim Chicago Meetup hosted at our Chicago office.