What's the motion-state keymap priority (under info mode) ?
Hi, As noted here, https://bitbucket.org/lyro/evil/src/1bb41474c1d4b6145dadcf3ed22bdaf3a2c0218c... the evil-motion-state-map should have a higer priority than the major mode (info mode) keymap. However, when in info mode, I found "gg" is falls into the info-mode-map, not the evil-motion-state-map. Regards. -- 吾輩は猫である。ホームーページはhttps://introo.me <http://introo.me>。
the evil-motion-state-map should have a higer priority than the major mode (info mode) keymap.
However, when in info mode, I found "gg" is falls into the info-mode-map, not the evil-motion-state-map.
That's because `Info-mode-map` is by default listed in the user option `evil-overriding-maps` (`M-x customize-variable RET evil-overriding-maps RET`). The reason is that otherwise many useful keys would be hidden by rarely used motions. Frank
Thanks for your help. Now I enconter a new problem, for the key `l', it should be Info-history-back however, it's now evil-forward-char This seems contradictory to the 'overriding map stuff'. Regards.
On 10.03.2016 07:19, Shiyao Ma wrote:
Thanks for your help.
Now I enconter a new problem,
for the key `l', it should be Info-history-back however, it's now evil-forward-char
Of course. That's because you usually want cursor motions to behave vim-like, i.e. h, j, k, l move the cursor. This is done by a call to `evil-add-hjkl-bindings` in evil-integration.el (and, in fact, those four keys are the only ones). At the same time Ctrl-t and Ctrl-o are both bound to `Info-history-back`, so you might use them instead. Best regards, Frank
participants (2)
-
Frank Fischer -
Shiyao Ma