Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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".



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: