3 ms·
Thanks for your reply! I had tried using :perldo, and thought it hadn't worked (I was distracted by the "Variable length lookbehind is experimental in regex" w
by Curiositry 4y ago
Thanks for your reply!
I had tried using :perldo, and thought it hadn't worked (I was distracted by the "Variable length lookbehind is experimental in regex" warning, and didn’t notice that it had in fact run silently).
However, in this case I expect there to be false positives, and need to run it interactively; perldo it replaces globally without confirmation. Is there any way to get match-highlighting & confirmation with perldo?
- gregjor 4y agoI don't how to get the interactive substituting or match highlighting with :perldo, but you can diff the result with the saved version to check what got changed: :w! diff % - Or use "git diff" instead of "diff" for nicer output.