Deleting Lines that don’t Match a Pattern
Share this page | Read it later using CloudBreak Wallabag
And we want to delete all lines that don’t contain calculate. We can do that with
:v
. Simply running:
:v/calculate/d
Share this page | Read it later using CloudBreak Wallabag
And we want to delete all lines that don’t contain calculate. We can do that with
:v
. Simply running:
:v/calculate/d