To delete all the lines below the current not containing an =
:
:,+g!/==/d
OR
:,+v/==/d
This is used in a book highlighting workflow where I highlight the most important quotes in markdown (surrounding words by ==
) and then move those important highlights to another note.