 ;;
 
 ;; This section is dedicated to "fixing" certain keys so that they behave
-;; properly, more like vim, or how I like it.
+;; sensibly (and consistently with similar contexts).
 
 (define-key input-decode-map [S-iso-lefttab] [backtab])
 

  (define-key! evil-ex-completion-map
    "\C-a" #'move-beginning-of-line
    "\C-b" #'backward-word
    "\C-f" #'forward-word))

(after! tabulated-list
  (define-key tabulated-list-mode-map "q" #'quit-window))

(after! view
  (define-key view-mode-map (kbd "<escape>") #'View-quit-all))

;; Restore common editing keys (and ESC) in minibuffer
(defun +default|fix-minibuffer-in-map (map)
  (evil-define-key* nil map
    [escape] #'abort-recursive-edit
    "\C-a" #'move-beginning-of-line
    "\C-w" #'backward-kill-word
    "\C-u" #'backward-kill-sentence

    "\C-f" #'forward-word
    "\C-z" (λ! (ignore-errors (call-interactively #'undo))))
  (when (featurep! :feature evil +everywhere)
    (define-key! map
      [escape] #'abort-recursive-edit
      "\C-r" #'evil-paste-from-register
      "\C-j" #'next-line
      "\C-k" #'previous-line
