invert-selection package
Invert the current text selection.
The default keymapping is ctrl-i. Enable or disable it in settings.
Combines well with built-in functions. For example, to to see only lines matching a search result:
Find All
Select Line
Invert Selection
Fold Selection