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

> Ctrl-V e 1 0 j c A_NEW_WORD

Another approach is something like:

    *:.,+9s/<ctrl-r>//A_NEW_WORD
But alas, that's 21 keystrokes.

(I post this now because it was closer to my first thought on how to approach the problem, and wanted to write it out to see if it was shorter. It wasn't, but maybe it'll be useful to someone. I learned about <ctrl-r>/ (fills in a search and replace with the previously searched expression), while writing it.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: