Function: evil-insert-0-line

evil-insert-0-line is an interactive and byte-compiled function defined in evil-commands.el.

Signature

(evil-insert-0-line COUNT &optional VCOUNT)

Documentation

Switch to insert state at beginning of current line.

Point is placed at column 0, or the beginning of the visual line. The insertion will be repeated COUNT times. If VCOUNT is non nil it should be number > 0. The insertion will be repeated in the next VCOUNT - 1 lines below the current one.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-insert-0-line (count &optional vcount)
  "Switch to insert state at beginning of current line.
Point is placed at column 0, or the beginning of the visual line.
The insertion will be repeated COUNT times.  If VCOUNT is
non nil it should be number > 0. The insertion will be repeated
in the next VCOUNT - 1 lines below the current one."
  :keep-visual t
  :type exclusive
  (interactive "p")
  (if (evil-visual-state-p)
      (evil-beginning-of-line)
    (evil--insert-line count vcount nil)))