defineEx
Registers a custom ex command (invoked with :name in the editor).
The prefix is the shortest unambiguous abbreviation that will also trigger the command. It must be a prefix of name. If null or empty, name itself is used as the prefix.
Example:
Vim.defineEx("write", "w") { cm, params ->
// handle :write or :w
}Content copied to clipboard
Parameters
name
The full command name (e.g. "write").
prefix
The short alias prefix (e.g. "w"), or null to use name.
func
The handler called when the command is invoked.