ExParams

data class ExParams(var commandName: String = "", var argString: String = "", var input: String = "", var args: MutableList<String>? = null, var line: Int = 0, var lineEnd: Int? = null, var hasLineRange: Boolean = false, var selectionLine: Int = 0, var selectionLineEnd: Int? = null, var setCfg: MutableMap<String, String>? = null, var callback: () -> Unit? = null)

Parameters passed to a custom ex command handler registered via Vim.defineEx.

Constructors

Link copied to clipboard
constructor(commandName: String = "", argString: String = "", input: String = "", args: MutableList<String>? = null, line: Int = 0, lineEnd: Int? = null, hasLineRange: Boolean = false, selectionLine: Int = 0, selectionLineEnd: Int? = null, setCfg: MutableMap<String, String>? = null, callback: () -> Unit? = null)

Properties

Link copied to clipboard

The argument string split on whitespace, or null if there were no arguments.

Link copied to clipboard

The raw argument string following the command name.

Link copied to clipboard
var callback: () -> Unit?

An optional completion callback for async ex commands.

Link copied to clipboard

The full name of the command that was invoked (e.g. "write").

Link copied to clipboard

Whether the command was invoked with an explicit line range.

Link copied to clipboard

The full raw input line from the ex command bar.

Link copied to clipboard
var line: Int

The line number the command was invoked on (0-based).

Link copied to clipboard
var lineEnd: Int?

The end of the line range, if the command was given a range.

Link copied to clipboard

The line number of the current selection start (0-based).

Link copied to clipboard

The line number of the current selection end, if applicable.

Link copied to clipboard

Key-value pairs from a :set-style argument, if present.