Right back at you, that’s super neat!
Re:From VS Code to Helix
by whatevertrevor on Wednesday October 29, 2025 @10:44PM
(#45755880)
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.
As a thank you, I'll leave you with the way I learned to search/replace, just to give you a slightly different flavour: asterisk, cgn ([c]hange [g]o [n]ext), type replaced, then . (period, to repeat) until I'm done.