After selecting a range of lines with the V command, I would like to delete every line of the file that is NOT selected.
Edit: What I would really like to know, is if there is a way to invert the selection -- select every line that is not selected. Like how
:g!/FOO/d`
deletes every line which does NOT contain FOO. The inverse of
'a,'b
would be the two ranges:
1,'a-1 and 'b+1,$
I suspect that this cannot be done in one step -- but it would be nice!