Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My numpad works in iterm2 (bash), but it inserts characters instead of numbers in insert mode for vim.

How can I get vim to recognise the correct escape codes.

I have tried editing the escape codes as suggested here without any luck: http://code.google.com/p/iterm2/issues/detail?id=702

share|improve this question
add comment

2 Answers

up vote 7 down vote accepted

Looks like the answer is to go into Preferences->Profiles->Keys and load preset of: xterm with numeric keypad.

share|improve this answer
add comment

but it removes some colors in my vim.

if you just need it some times, just type:

:set term=ansi

in VIM

Best regards

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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