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

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 “.” .


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.




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

Search: