Skip to main content

Module target

Module target 

Source
Expand description

Target: the value an operator operates on.

A Target resolves (via the dispatcher) to a structural buffer range. It can be a motion (consumed by following the motion’s evaluator from the current cursor), a text-object (consumed by evaluating the text-object at the current cursor), or an explicit grammar Range (line range, mark range, :%, current selection, etc.).

Enums§

Target
What an operator acts on: the w in dw, the iw in diw, the % in :%d. The dispatcher resolves it against the document and cursor to a concrete span before calling the operator.