Skip to content

VimApi.defineEx method

VimApi › defineEx

Unofficial

Register an Ex command, and map it to :name.

Signature:

defineEx(name: string, prefix: string, func: VimExFn): void

Parameters:

ParameterTypeDescription
namestringThe command's full name.
prefixstringThe shortest abbreviation that invokes it. The prefix itself, and any substring of name that starts with it, will invoke the command. Falsy leaves name as the prefix.
funcVimExFnThe implementation.

Returns: void