Function: evil-ex-resize
evil-ex-resize is an interactive and byte-compiled function defined in
evil-commands.el.
Signature
(evil-ex-resize ARG)
Documentation
The ex :resize command.
If ARG is a signed positive integer, increase the current window height by ARG.
If ARG is a signed negative integer, decrease the current window height by ARG.
If ARG is a positive integer without explicit sign, set the current window height to ARG.
If ARG is empty, maximize the current window height.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-ex-resize (arg)
"The ex :resize command.
If ARG is a signed positive integer, increase the current window
height by ARG.
If ARG is a signed negative integer, decrease the current window
height by ARG.
If ARG is a positive integer without explicit sign, set the current
window height to ARG.
If ARG is empty, maximize the current window height."
(interactive "<a>")
(if (or (not arg) (= 0 (length arg)))
(evil-window-set-height nil)
(let ((n (string-to-number arg)))
(if (> n 0)
(if (= ?+ (aref arg 0))
(evil-window-increase-height n)
(evil-window-set-height n))
(evil-window-decrease-height (- n))))))