I am working from an iMac running Yosemite and using this keyboard. The number pad works in the terminal, but when I open vim
or less
it does not.
For example using less
, if I type for the number 8
, I get ESCOx
, not an 8
. In vim 7.2 (in command mode), it inserts an x
. How do I fix this behavior? I got this keyboard specifically for the number pad.
Best Answer
If you are using Terminal (not iTerm or others), there is a setting that might help. Turn off this setting (sorry, it's in german. But the location should be the same):
If you are using
iTerm
, there is at least a fix forvim
: You can remap the keys to get this to work. Just add the following lines to your~/.vimrc
(Create it, if it doesn't exist.)Source: a comment in the vim wiki.