File: evil-ex.el.html
Ex is implemented as an extensible minilanguage, whose grammar
is stored in evil-ex-grammar. Ex commands are defined with
evil-ex-define-cmd, which creates a binding from a string
to an interactive function. It is also possible to define key
sequences which execute a command immediately when entered:
such shortcuts go in evil-ex-shortcut-map.
To provide buffer and filename completion, as well as interactive
feedback, Ex defines the concept of an argument handler, specified
with evil-ex-define-argument-type. In the case of the
substitution command (":s/foo/bar"), the handler incrementally
highlights matches in the buffer as the substitution is typed.
Defined variables (8)
evil--ex-argument-handler | The argument handler for the current Ex command. |
evil--ex-cmd | The current Ex command string. |
evil--ex-echo-overlay | Overlay for displaying info messages during Ex. |
evil--ex-shell-argument-initialized | This variable is set to t if shell command completion has been initialized. |
evil--ex-shortcut-command | Interactive command to use instead of an Ex command. |
evil-ex-argument-types | Association list of argument handlers. |
evil-ex-commands | Association list of command bindings and functions. |
evil-ex-reverse-range | Whether the current Ex range was entered reversed. |