Tip #503: PuTTY numeric keypad mappings
tip karma |
Rating 37/12, Viewed by 1439
|
created: |
|
July 3, 2003 6:03 |
|
complexity: |
|
advanced |
author: |
|
Michael Metzger |
|
as of Vim: |
|
5.7 |
Purpose: Add support for {rhs} of keyboard numeric keypad while in vim insert mode and using PuTTY as a SSH terminal connection.
What to do: Add these mappings to your _vimrc or _gvimrc. PuTTY's default terminal type is xterm. Check your settings or just echo $TERM at the command prompt on most unix systems to verify xterm type.
Code to add to _vimrc:
:imap ^[Oq 1
:imap ^[Or 2
:imap ^[Os 3
:imap ^[Ot 4
:imap ^[Ou 5
:imap ^[Ov 6
:imap ^[Ow 7
:imap ^[Ox 8
:imap ^[Oy 9
:imap ^[Op 0
:imap ^[On .
:imap ^[OQ /
:imap ^[OR *
:imap ^[Ol +
:imap ^[OS -
Any questions about vim and PuTTY please send to [email protected].
Michael Metzger
<<View character class |
syntax check >>
Additional Notes
|