3 ms·
Tbh, that’s how I call it but it’s just having incremental search enabled. That will highlight search/replace matches and the using s/<thing to search for>/<thi
by _benj 5y ago
Tbh, that’s how I call it but it’s just having incremental search enabled. That will highlight search/replace matches and the using s/<thing to search for>/<thing to replace it with>
That allows me to see what my regex matches. So I can start typing ^d*\. Hello and that would match any start of line digit followed by a dot and the word hello.
I still have a lot to learn there but just that has been incredibly useful for me.
Hope that makes sense
- wolverine876 5y agoYes, thanks. That's not what I thought you meant, but it suggests a great idea: Something that gives visual feedback as you construct regexes. I'm not sure that incremental search isn't sufficient, however.
- sagarm 5y agoThat's exactly what NeoVIM supports: you get a live preview of searches and replaces. The behavior can be enabled with ":set inccommand=split" (preview in a separate window) or ":set inccommand=nosplit" (inline preview).