Function: evil-window-vnew
evil-window-vnew is an interactive and byte-compiled function defined
in evil-commands.el.
Signature
(evil-window-vnew COUNT FILE)
Documentation
Split the current window vertically and open a new buffer name or edit a certain FILE.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-window-vnew (count file)
"Split the current window vertically
and open a new buffer name or edit a certain FILE."
:repeat nil
(interactive "<wc><f>")
(let ((new-window (split-window (selected-window) (when count (- count))
(if evil-vsplit-window-right 'right 'left))))
(when (and (not count) evil-auto-balance-windows)
(balance-windows (window-parent)))
(select-window new-window)
(evil-buffer-new file)))