Function: forward-evil-word

forward-evil-word is a byte-compiled function defined in evil-common.el.

Signature

(forward-evil-word &optional COUNT)

Documentation

Move forward COUNT words.

Moves point COUNT words forward or (- COUNT) words backward if COUNT is negative. Point is placed after the end of the word (if forward) or at the first character of the word (if backward). A word is a sequence of word characters matching
[[:word:]] (recognized by forward-word), a sequence of
non-whitespace non-word characters '[^[:word:]\n\r\t\f ]', or an empty line matching ^$.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun forward-evil-word (&optional count)
  "Move forward COUNT words.
Moves point COUNT words forward or (- COUNT) words backward if
COUNT is negative.  Point is placed after the end of the word (if
forward) or at the first character of the word (if backward).  A
word is a sequence of word characters matching
\[[:word:]] (recognized by `forward-word'), a sequence of
non-whitespace non-word characters '[^[:word:]\\n\\r\\t\\f ]', or
an empty line matching ^$."
  (evil-forward-nearest
   count
   #'(lambda (&optional cnt)
       (let ((word-separating-categories evil-cjk-word-separating-categories)
             (word-combining-categories evil-cjk-word-combining-categories)
             (pnt (point)))
         (forward-word cnt)
         (if (= pnt (point)) cnt 0)))
   #'(lambda (&optional cnt)
       (evil-forward-chars "^[:word:]\n\r\t\f " cnt))
   #'forward-evil-empty-line))