HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by wuhhh | Hacker News Reader
Parent
Full thread
wuhhh
·
Right back at you, that’s super neat!
View on HN
whatevertrevor
·
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.
Reply on news.ycombinator.com