From: James Bunton Date: Mon, 21 Jul 2008 10:33:49 +0000 (+1000) Subject: Vim: Support for xterm numeric keypad. X-Git-Url: https://code.delx.au/dotfiles/commitdiff_plain/ae7c82724db2cc07a88fc522f530af35c90e7855 Vim: Support for xterm numeric keypad. --- diff --git a/.vim/macros.vim b/.vim/macros.vim index db2e5b2..42b1d98 100644 --- a/.vim/macros.vim +++ b/.vim/macros.vim @@ -19,6 +19,20 @@ command! QA :qa command! Qa :qa command! Q :q +" Make the number pad work +map OX = +imap OX = +set t_KC=Op " 0 +set t_KD=Oq " 1 +set t_KE=Or " 2 +set t_KF=Os " 3 +set t_KG=Ot " 4 +set t_KH=Ou " 5 +set t_KI=Ov " 6 +set t_KJ=Ow " 7 +set t_KK=Ox " 8 +set t_KL=Oy " 9 + " Unhighlight search results nmap :nohlsearch:redraw!