Skip to main content

Selection Modes

Selection modes 1 dictates how core movements works.

There are roughly 3 categories of selection modes (not clear-cut):

  1. Syntax tree-based
  2. Regex-based
  3. Local/Global

Contiguity

Besides the categorization above, selection modes are also separated based on their contiguity.

A selection mode is considered contiguous, if there's no meaningful gap between each of the selections.

A gap is meaningful if it's neither whitespaces only nor separators like , or ;.

The following selection modes are contiguous (exhaustive):

  1. Line
  2. Column
  3. Word
  4. Syntax Node
  5. Token

Footnotes

  1. For Vim users, selection mode means text objects.