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

> In vim, I'd `*` to automatically search for `someVar`, then `cwsomeOtherVar`, (change-word), then `n.n.n.` (next, repeat, etc.)

There's also:

  :%s/someVar/someOtherVar/gc
The "c" at the end is for "confirm", vim asks whether to change each one and it's a single "y" or "n" before going to the next.


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

Search: