Skip to content

VimApi.exitInsertMode method

VimApi › exitInsertMode

Unofficial

Leave insert mode, returning to normal mode.

Signature:

exitInsertMode(cm: CodeMirrorEditor, keepCursor?: boolean | undefined): void

Parameters:

ParameterTypeDescription
cmCodeMirrorEditorThe editor to act on.
keepCursor?boolean | undefinedWhether the cursor stays where it is rather than stepping back one character the way Vim does.

Returns: void