Skip to content

VimApi.defineMotion method

VimApi › defineMotion

Unofficial

Register a motion, which moves the cursor without changing the document.

Signature:

defineMotion(name: string, fn: VimMotionFn): void

Parameters:

ParameterTypeDescription
namestringThe name mappings refer to the motion by.
fnVimMotionFnThe implementation.

Returns: void