Function: evil-window-split
evil-window-split is an interactive and byte-compiled function defined
in evil-commands.el.
Signature
(evil-window-split &optional COUNT FILE READ-ONLY)
Documentation
Split the current window horizontally, COUNT lines height,
editing a certain FILE. The new window will be created below
when evil-split-window-below is non-nil. If COUNT and
evil-auto-balance-windows are both non-nil then all children
of the parent of the splitted window are rebalanced.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-window-split (&optional count file read-only)
"Split the current window horizontally, COUNT lines height,
editing a certain FILE. The new window will be created below
when `evil-split-window-below' is non-nil. If COUNT and
`evil-auto-balance-windows' are both non-nil then all children
of the parent of the splitted window are rebalanced."
:repeat nil
(interactive "<wc><f>")
(select-window
(split-window (selected-window) (when count (- count))
(if evil-split-window-below 'below 'above)))
(when (and (not count) evil-auto-balance-windows)
(balance-windows (window-parent)))
(when file
(funcall (if read-only #'evil-view #'evil-edit) file)))