Function: evil-ex-repeat

evil-ex-repeat is an interactive and byte-compiled function defined in evil-ex.el.

Signature

(evil-ex-repeat &optional COUNT)

Documentation

Repeat the last Ex command.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-ex.el
(defun evil-ex-repeat (&optional count)
  "Repeat the last Ex command."
  (interactive "P")
  (when count
    (goto-char (point-min))
    (forward-line (1- count)))
  (cl-loop
   with evil-ex-original-buffer = (current-buffer)
   for last-cmd in evil-ex-history do
   (condition-case nil
       (cl-return (let (evil-ex-history) (evil-ex-execute last-cmd)))
     (evil-ex-no-previous-cmd))
   finally (signal 'evil-ex-no-previous-cmd nil)))