Hacker News new | ask | show | jobs
by tylerhou 1437 days ago
I use / to search by a string (or press * while my cursor is on a word to search for that word), then press n or p to go to the next or previous. cgn changes the matched text, and you use . to repeat the change, so to change a word over all occurrences I just cgn once and repeatedly press “.” .
1 comments

Yeah this is the way I tried it. I did not find as fast.
I just select a block of code (visual mode) and use sed syntax, much faster than worrying about multiple cursors, etc and it works fine for me.