get
function get(name): CommandDefinition;
Get ex command definition by name.
warning
The builtin js command cannot be get.
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Returns command definition by its name, except the js command.
Example
const def = Rsvim.cmd.get("write");
Rsvim.cmd.echo(`Command: ${def.name}`);