Iterm2 vi numerical keypad not working
By jpdog... on March 08, 2011 09:41 (imported from Google Code)
What steps will reproduce the problem?
- Open vi
- Insert mode
- numerical keypad does not provide numerics
What is the expected output? What do you see instead?
1 2 3 ... entered. q r s ...is obtained instead (1 character per line. CR after each character entering)
What version of the product are you using? On what operating system?
build 0.20.20110303 on Mac OS X 10.6.6
Please provide any additional information below.
Comment 1 by gnach... on March 15, 2011 05:51
r680 adds a key preset that overrides the application keypad. (if you can't wait, just add keymappigns in prefs->profiles->keys for each key on the numeric keypad)
Comment 2 by nathan.sto... on January 01, 2013 00:29
I just downloaded the latest build of iTerm 2, and I had to manually make key mappings for each key on the numeric keypad. The only preset with keypad stuff is "xterm with Numeric Keypad" -- but that added a lot of other mappings as well, which I didn't really like.
Couldn't we make this more normal (ie default to mapping the number keys)? This is the only text-entry app I've ever used that has treated the numeric keypad as something other than text entry by default.
Comment 3 by gnach... on January 04, 2013 04:39
(No comment has been entered for this change)
Labels: Milestone: Release3.0
Comment 4 by xybr... on January 17, 2013 01:43
This isn't an iTerm issue, pretty much every terminal does this.
You can add these mappings to your .vimrc to make your keypad output numbers in Vim:
If you have an issue with bash doing the same thing (like I did), you just need to update bash, compiling it with a better version of readline than ships with OSX. (OSX's readline is gimpy and broken, don't use it)