VimApi.defineAction method
VimApi › defineAction
Unofficial
Define a new Vim action with the given name and handler function.Signature:
defineAction(name: string, fn: (cm: VimEditor, actionArgs: object, vim: VimStateVim) => void): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| name | string | The name of the action. |
| fn | (cm: VimEditor, actionArgs: object, vim: VimStateVim) => void | The handler function for the action. |
Returns: void