4 ms·
You can do it with evil-mode (or vim) too: :%v/pattern/d runs ‘d’ on all lines which do not match the pattern. (The opposite is :%g/pattern/d.) I believe it wor
by bradrn 3y ago
You can do it with evil-mode (or vim) too: :%v/pattern/d runs ‘d’ on all lines which do not match the pattern. (The opposite is :%g/pattern/d.) I believe it works with any command, though I’ve only ever used it with ‘d’.
- clscott 3y ago%v/pattern/d can also be written as %g!/pattern/d