VimApi.defineOperator method
VimApi › defineOperator
Unofficial
Define a new Vim operator with the given name and handler.Signature:
defineOperator(name: string, fn: (cm: VimEditor, operatorArgs: object, ranges: object[], oldAnchor: object, newHead: object) => void): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the operator. |
| fn | (cm: VimEditor, operatorArgs: object, ranges: object[], oldAnchor: object, newHead: object) => void | The handler function for the operator. |
Returns: void