Function: evil-insert-newline-above

evil-insert-newline-above is a byte-compiled function defined in evil-common.el.

Signature

(evil-insert-newline-above)

Documentation

Insert a new line above point and place point in that line with regard to indentation.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-insert-newline-above ()
  "Insert a new line above point and place point in that line
with regard to indentation."
  (evil-narrow-to-field
    (evil-move-beginning-of-line)
    (insert (if use-hard-newlines hard-newline "\n"))
    (forward-line -1)
    (back-to-indentation)))