12
3
After selecting a range of lines with the V
command, I would like to delete every line of the file that is NOT selected, so 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.
If I had a range in mind and wanted to use its inverse:
'a,'b
I would need to use the two ranges:
1,'a-1
and
'b+1,$
I suspect that this cannot be done in one step -- but it would be nice!
so you want a "crop"-style operation? – quack quixote – 2009-11-19T16:10:35.590