Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
wuhhh
· 1y ago · 0 comments
Right back at you, that’s super neat!
Comments
[–]
whatevertrevor
1y 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.