VimApi.exitInsertMode method
VimApi › exitInsertMode
Unofficial
Leave insert mode, returning to normal mode.Signature:
exitInsertMode(cm: CodeMirrorEditor, keepCursor?: boolean | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| cm | CodeMirrorEditor | The editor to act on. |
| keepCursor? | boolean | undefined | Whether the cursor stays where it is rather than stepping back one character the way Vim does. |
Returns: void