Skip to content

VimApi.exitInsertMode method

VimApi › exitInsertMode

Unofficial

Exit insert mode, optionally keeping the cursor position.

Signature:

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

Parameters:

Parameter Type Description
cm VimEditor The editor instance.
keepCursor? boolean | undefined Whether to keep the cursor position.

Returns: void