I'm aware that :g/<body/ .,/body>/d
can be used to delete everything within the multi-line selection betweeh <body
and body>
.
I'm also aware that :g!/<pattern>/d
can be used to delete all lines not matching the pattern.
How do I combine these 2 to delete everything except the the multi-line selection?
decorare
,sort
,undecorate
pattern to achive this. But I doubt this is easily doable with a vim oneliner