Function: evil-last-non-blank

evil-last-non-blank is an interactive and byte-compiled function defined in evil-commands.el.

Signature

(evil-last-non-blank &optional COUNT)

Documentation

Move the cursor to the last non-blank character 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-last-non-blank (count)
  "Move the cursor to the last non-blank character of the current line.
If COUNT is given, move COUNT - 1 lines downward first."
  :type inclusive
  (evil-move-end-of-line count)
  (skip-chars-backward " \t")
  (unless (bolp) (backward-char)))