Function: evil-edit

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

Signature

(evil-edit FILE &optional BANG)

Documentation

Open FILE.

If no FILE is specified, reload the current buffer from disk.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-edit (file &optional bang)
  "Open FILE.
If no FILE is specified, reload the current buffer from disk."
  :repeat nil
  (interactive "<f><!>")
  (if file
      (find-file file)
    (revert-buffer bang (or bang (not (buffer-modified-p))) t)
    (read-only-mode -1)))