In vim I can delete all lines that contain the word "price" with this
How can I delete all lines that do NOT contain the word "price"?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
is another option that can be considerably faster than
:v for large files.
Tested on Vim 7.4, Ubuntu 14.04, 1M line log file.