Sunday, April 3, 2011

Changing Editor for Unix INFO Command

Currently my "info" command uses Emacs as its default editor.

$ info printf

Is there a way to change it into Vi/Vim?

From stackoverflow
  • Try to set the VISUAL and EDITOR environment variables to the full path of Vim.

  • You need something that understands TexInfo, which I don't believe Vi/Vim does. You might just be stuck with emacs. More info at wikipedia.

  • Your best hope that I can see is to run it with the --vi-keys command switch, which "uses vi-like and less-like key bindings". Unfortunately, I don't see anything else that can be of help to you.

0 comments:

Post a Comment