by wuhhh · 1y ago · 0 comments
Anyway nvim and helix are both amazing and terminal editors are both cool and sexy, so why wouldn’t you? ;)
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.
:%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.Sometimes it's funny to look around and see the strange local minimum of effort you've settled into.