Function: evil-find-char-to

evil-find-char-to is an interactive and byte-compiled function defined in evil-commands.el.

Signature

(evil-find-char-to &optional COUNT CHAR)

Documentation

Move before the next COUNT'th occurrence of CHAR.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-motion evil-find-char-to (count char)
  "Move before the next COUNT'th occurrence of CHAR."
  :type inclusive
  (interactive "<c><C>")
  (unwind-protect
      (evil-find-char count char)
    (setcar evil-last-find #'evil-find-char-to))
  (if (> (or count 1) 0)
      (backward-char)
    (forward-char)))