evil-mode
does not seem to bind keys in the minibuffer. Is there a way to use evil
in the minibuffer? It's hard to use Vim-style keybindings everywhere BUT the minibuffer.
1 Answer
PR #1059 implemented this. Turn it on like this:
(setq evil-want-minibuffer t)
Watch out not to become too evil! :D
-
-
-
Is there an update to this which allows visually seeing which evil state the minibuffer is in? (For example,
viper
does this by changing the minibuffer text color.)– mtraceurApr 5 at 16:59 -
To be clear, I mean specifically seeing the
evil
state in the minibuffer in a terminal. In the GUI, the cursor is visual indicator enough, but sadly in many terminals the cursor doesn't visually change between insert and command mode. (Worst case scenario I can eventually figure out and copy whatviper
is doing to change minibuffer "face" depending on it's state, and figure out how to do something similar, but if something exists out-of-the-box that would be nice.)– mtraceurApr 5 at 17:31 -
Answering my own comment (I will eventually fork this into its own question, although I do think it's very relevant here too): there is no such feature in Evil that I've been able to find, but I eventually figured out how to implement it fairly easily.– mtraceurApr 16 at 16:34
:
). You can do that by using theq:
command. Even if it doesn't quite do what you want, it's super useful and well worth learning.