0

Normally, thanks to the power of Evil, I can use the Vim gg command to go to the beginning of a buffer. When browsing info, however, typing g brings up a "Go to node: " prompt. I don't even know what this prompt means. How can I circumvent this and run my gg? Or is there a better way I am supposed to return to the beginning of an info buffer?

2

You can simply delete the g binding to let the evil one shine through:

(define-key Info-mode-map "g" nil)
|improve this answer|||||
  • Thanks! Could you add more general information about problems with Evil mode in info (or where I can find said information)? – Sam Estep Aug 4 '15 at 3:34
  • @RedRoboHood I'm not entirely sure what you mean. (I have a vague notion, but could you clarify?) – PythonNut Aug 4 '15 at 3:45
  • Basically, I was just surprised that such a basic Evil mode command was overridden by a default binding in info mode, and I'm looking for a list of other such cases. – Sam Estep Aug 4 '15 at 12:31
  • @RedRoboHood evil-motion-state binds only keys that Info-mode doesn't bind. If you would rather evil-mode override all keys, use (evil-set-initial-state 'Info-mode 'normal) – PythonNut Aug 4 '15 at 15:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.