Deleting Lines that don’t Match a Pattern
And we want to delete all lines that don’t contain calculate. We can do that with
:v
. Simply running:
:v/calculate/d
And we want to delete all lines that don’t contain calculate. We can do that with
:v
. Simply running:
:v/calculate/d