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

Right back at you, that’s super neat!


Let me add my third way of doing this in vim:

    :%s/<CTRL-R><CTRL-W>/replacement/(gcn)
As you can guess <CTRL-W> invokes a special register that contains the "word" currently under the cursor.




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

Search: