Function: evil-update-insert-state-bindings

evil-update-insert-state-bindings is an interactive and byte-compiled function defined in evil-maps.el.

Signature

(evil-update-insert-state-bindings &optional OPTION-NAME REMOVE FORCE)

Documentation

Update bindings in evil-insert-state-map.

If no arguments are given add the bindings specified in evil-insert-state-bindings. If REMOVE is non nil, remove only these bindings. Unless FORCE is non nil, this will not overwriting existing bindings, which means bindings will not be added if one already exists for a key and only default bindings are removed.

Note that <delete>, <escape> and evil-toggle-key are not included in evil-insert-state-bindings by default.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20260728.1438/evil-maps.el
(defun evil-update-insert-state-bindings (&optional _option-name remove force)
  "Update bindings in `evil-insert-state-map'.
If no arguments are given add the bindings specified in
`evil-insert-state-bindings'. If REMOVE is non nil, remove only
these bindings. Unless FORCE is non nil, this will not
overwriting existing bindings, which means bindings will not be
added if one already exists for a key and only default bindings
are removed.

Note that <delete>, <escape> and `evil-toggle-key' are not
included in `evil-insert-state-bindings' by default."
  (interactive)
  (dolist (binding evil-insert-state-bindings)
    (cond
     ((and remove
           (or force
               ;; Only remove if the default binding has not changed
               (eq (evil-lookup-key evil-insert-state-map (car binding))
                   (cdr binding))))
      (define-key evil-insert-state-map (car binding) nil))
     ((and (null remove)
           (or force
               ;; Check to see that nothing is bound here before adding
               (not (evil-lookup-key evil-insert-state-map (car binding)))))
      (define-key evil-insert-state-map (car binding) (cdr binding))))))