Skip to content

VimApi.unmap method

VimApi › unmap

Unofficial

Remove a user-defined mapping.

Signature:

unmap(lhs: string, ctx?: VimKeyMappingContext | undefined): true | undefined

Parameters:

ParameterTypeDescription
lhsstringThe key sequence the mapping was made for.
ctx?VimKeyMappingContext | undefinedThe mode the mapping was made in.

Returns: true | undefinedtrue when a mapping was removed, otherwise undefined.