Hacker News new | ask | show | jobs
by mryan 4109 days ago
How about find and replace?

:%s/foo/bar/gc

The "gc" will apply the find and replace globally, and ask for confirmation before changing an occurrence of "foo".