Skip to content

VimApi.defineOperator method

VimApi › defineOperator

Unofficial

Register an operator, which transforms the range a motion selected.

Signature:

defineOperator(name: string, fn: VimOperatorFn): void

Parameters:

ParameterTypeDescription
namestringThe name mappings refer to the operator by.
fnVimOperatorFnThe implementation.

Returns: void