I am trying to bind CTRL-B
to perform the Evil command :buffers
. The reason I am doing this is because I want to scroll through the open buffers with j
and k
and then press <RET>
to make the selection.
What I tried was adding the following code to my configuration file:
;; Switch Evil-mode buffers
(define-key evil-normal-state-map (kbd "C-B") ":buffers")
The result of reloading this configuration (:eval-buffer
) and then pressing CTRL-B
leads to:
After 0 kbd macro iterations: Can't find "
How can we bind to an Ex-mode command?
evil-mode-map
. Do you meanevil-normal-state-map
or something along those lines?