Function: evil-window-prev

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

Signature

(evil-window-prev COUNT)

Documentation

Move the cursor to the previous window in the cyclic order.

With COUNT go to the count-th window in the order starting from top-left.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-commands.el
(evil-define-command evil-window-prev (count)
  "Move the cursor to the previous window in the cyclic order.
With COUNT go to the count-th window in the order starting from
top-left."
  :repeat nil
  (interactive "<wc>")
  (if (not count)
      (other-window -1)
    (evil-window-top-left)
    (other-window (1- (min count (length (window-list)))))))