Function: evil-end-of-line

evil-end-of-line is an interactive and byte-compiled function defined in evil-commands.el.

Signature

(evil-end-of-line &optional COUNT)

Documentation

Move the cursor to the end of the current line.

If COUNT is given, move COUNT - 1 lines downward first.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-motion evil-end-of-line (count)
  "Move the cursor to the end of the current line.
If COUNT is given, move COUNT - 1 lines downward first."
  :type inclusive
  (move-end-of-line count)
  (when evil-track-eol
    (setq temporary-goal-column most-positive-fixnum
          this-command 'next-line))
  (let ((evil-move-beyond-eol
         (if (evil-visual-state-p) (not evil-v$-excludes-newline)
           evil-move-beyond-eol)))
    (evil-adjust-cursor))
  ;; Prevent "c$" and "d$" from deleting blank lines
  (when (eolp) (setq evil-this-type 'exclusive)))