Function: evil-shift-left-line

evil-shift-left-line is an interactive and byte-compiled function defined in evil-commands.el.

Signature

(evil-shift-left-line COUNT)

Documentation

Shift the current line COUNT times to the left.

The text is shifted to the nearest multiple of evil-shift-width. Like evil-shift-left but always works on the current line.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-shift-left-line (count)
  "Shift the current line COUNT times to the left.
The text is shifted to the nearest multiple of
`evil-shift-width'. Like `evil-shift-left' but always works on
the current line."
  (interactive "<c>")
  (if (and (eq 'self-insert-command last-command)
           (eq ?0 (char-before)))
      (progn (delete-char -1)
             (evil-delete-indentation))
    (evil-shift-left (line-beginning-position) (line-beginning-position 2) count t)))