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-handlerThe argument handler for the current Ex command.
evil--ex-cmdThe current Ex command string.
evil--ex-echo-overlayOverlay for displaying info messages during Ex.
evil--ex-shell-argument-initializedThis variable is set to t if shell command completion has been initialized.
evil--ex-shortcut-commandInteractive command to use instead of an Ex command.
evil-ex-argument-typesAssociation list of argument handlers.
evil-ex-commandsAssociation list of command bindings and functions.
evil-ex-reverse-rangeWhether the current Ex range was entered reversed.

Defined functions (38)

evil--ex-bang-p(COMMAND)
evil--ex-remove-echo-overlay()
evil--ex-syntactic-context(&optional (POS (point)) (TREE (save-excursion (goto-char (minibuffer-prompt-end)) (evil-ex-parse nil t))))
evil--ex-update(&optional BEG END OLD-LEN)
evil-completion-table-concat(TABLE1 TABLE2)
evil-ex(&optional INITIAL-INPUT)
evil-ex-argument-completion-at-point(&rest ARGUMENTS)
evil-ex-argument-handler-completer--inliner(INLINE--FORM X)
evil-ex-argument-handler-runner(evil-ex-argument-handler-runner X)
evil-ex-argument-handler-runner--inliner(INLINE--FORM X)
evil-ex-call-command(RANGE COMMAND ARGUMENT)
evil-ex-char-marker-range(BEG END)
evil-ex-command-completion-at-point()
evil-ex-command-force-p(COMMAND)
evil-ex-completed-binding(COMMAND &optional NOERROR)
evil-ex-completion()
evil-ex-completion-at-point()
evil-ex-current-line()
evil-ex-define-cmd(CMD FUNCTION)
evil-ex-delete-backward-char()
evil-ex-echo(STRING &rest ARGS)
evil-ex-elisp-completion-at-point()
evil-ex-execute(STRING)
evil-ex-file-arg()
evil-ex-first-line()
evil-ex-full-range()
evil-ex-init-shell-argument-completion(FLAG &optional ARG)
evil-ex-line(BASE &optional OFFSET)
evil-ex-marker(MARKER)
evil-ex-p()
evil-ex-parse(&optional STRING SYNTAX ENTRYPOINT)
evil-ex-range(BEG-LINE &optional END-LINE)
evil-ex-re-bwd(PATTERN)
evil-ex-replace-special-filenames(FILE-NAME)
evil-ex-setup()
evil-ex-signed-number(SIGN &optional NUMBER)
evil-ex-sort-completions(COMPLETIONS)
evil-ex-teardown()

Defined faces (0)