Invert selection

Is it possible to invert the current selection?
Or to “cut” two selections?

Thanks!

You have the S command for splitting.

Say I have a selection and I want to select anything in the buffer but this selection.

Or I have two selections and I want to select only where they
(a) overlap
or
(b) not overlap

How would I do that?

Related issues on GH:

1 Like

didn’t see them.
Thanks!

I don’t think selections can overlap in normal mode but if you have a selection saved to a register you can use <a-z>i to get the intersection of the two.

Yes, but not a cut as described in the Github Pr