VimApi.defineMotion method
VimApi › defineMotion
Unofficial
Register a motion, which moves the cursor without changing the document.Signature:
defineMotion(name: string, fn: VimMotionFn): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | The name mappings refer to the motion by. |
| fn | VimMotionFn | The implementation. |
Returns: void