Function: evil-shift-left

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

Signature

(evil-shift-left BEG END &optional COUNT PRESERVE-EMPTY)

Documentation

Shift text from BEG to END to the left.

The text is shifted to the nearest multiple of evil-shift-width
(the rounding can be disabled by setting evil-shift-round).
If PRESERVE-EMPTY is non-nil, lines that contain only spaces are indented, too, otherwise they are ignored. Location of point is preserved relative to text when called from insert state. Otherwise, it is determined by evil-start-of-line and/or evil-track-eol. See also evil-shift-right.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-operator evil-shift-left (beg end &optional count preserve-empty)
  "Shift text from BEG to END to the left.
The text is shifted to the nearest multiple of `evil-shift-width'
\(the rounding can be disabled by setting `evil-shift-round').
If PRESERVE-EMPTY is non-nil, lines that contain only spaces are
indented, too, otherwise they are ignored.  Location of point
is preserved relative to text when called from insert state.
Otherwise, it is determined by `evil-start-of-line' and/or `evil-track-eol'.
See also `evil-shift-right'."
  :type line
  (interactive "<r><vc>")
  (evil-shift-right beg end (- (or count 1)) preserve-empty))