News for hackers. Stuff that matters.
Re:Show HN: I built an interactive course that helps you lea... by tylerhou on Saturday July 09, 2022 @10:49AM (#32035584)
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 “.” .
Re:Show HN: I built an interactive course that helps you lea... by mknsri on Saturday July 09, 2022 @11:59AM (#32036318)
Yeah this is the way I tried it. I did not find as fast.
Re:Show HN: I built an interactive course that helps you lea... by Morgawr on Saturday July 09, 2022 @12:28PM (#32036645)
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.