Hacker News new | ask | show | jobs
by whatevertrevor 226 days ago
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.