Skip to content

VimApi.exitVisualMode method

VimApi › exitVisualMode

Unofficial

Leave visual mode, returning to normal mode.

Signature:

exitVisualMode(cm: CodeMirrorEditor, moveHead?: boolean | undefined): void

Parameters:

ParameterTypeDescription
cmCodeMirrorEditorThe editor to act on.
moveHead?boolean | undefinedWhether the cursor collapses onto the head of the selection. Pass false to leave it where it is.

Returns: void