Skip to main content
Version: Next

get

function get(name): CommandDefinition;

Get ex command definition by name.

warning

The builtin js command cannot be get.

Parameters

ParameterType

name

string

Returns

CommandDefinition

Returns command definition by its name, except the js command.

Example

const def = Rsvim.cmd.get("write");
Rsvim.cmd.echo(`Command: ${def.name}`);