Function: evil-save-and-close

evil-save-and-close is an interactive and byte-compiled function defined in evil-commands.el.

Signature

(evil-save-and-close FILE &optional BANG)

Documentation

Save the current buffer and close the window.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-save-and-close (file &optional bang)
  "Save the current buffer and close the window."
  :repeat nil
  (interactive "<f><!>")
  (evil-write nil nil nil file bang)
  (evil-quit))