Skip to content

VimApi.findKey method

VimApi › findKey

Unofficial

Look up a key binding in the given editor and origin context.

Signature:

findKey(cm: VimEditor, key: string, origin?: string | undefined): boolean

Parameters:

Parameter Type Description
cm VimEditor The editor instance.
key string The key to look up.
origin? string | undefined The origin context for the lookup.

Returns: booleanWhether a binding was found and handled.