8 ms·
probably the single most useful thing in NeoVim is :set inccommand=nosplit This lets you see the results of commands (like complex regex for example) while yo
by MobiusHorizons 5y ago
probably the single most useful thing in NeoVim is
:set inccommand=nosplit
This lets you see the results of commands (like complex regex for example) while you type them. For me this has made a huge difference to the enjoyment of refactoring code. It is both possible and fun to try a ridiculous regular expression with lots of capture groups or even one that works across newlines when I can watch the results as I type.
Saddly this only works in NeoVim to my knowledge, not in regular vim, but it's pretty amazing.
- jeppesen-io 5y agoThank you so so much!
- MobiusHorizons 5y agoIt really is amazing isn’t it?