]> code.delx.au - dotfiles/commitdiff
Vim: Support for xterm numeric keypad.
authorJames Bunton <jamesbunton@delx.net.au>
Mon, 21 Jul 2008 10:33:49 +0000 (20:33 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Mon, 21 Jul 2008 10:33:49 +0000 (20:33 +1000)
.vim/macros.vim

index db2e5b254e735849139df5aa9bd8777acdecb5e9..42b1d98ab793a26e2902240f0bec2405bbf236e5 100644 (file)
@@ -19,6 +19,20 @@ command! QA :qa
 command! Qa :qa
 command! Q :q
 
+" Make the number pad work
+map \eOX =
+imap \eOX =
+set t_KC=\eOp " 0
+set t_KD=\eOq " 1
+set t_KE=\eOr " 2
+set t_KF=\eOs " 3
+set t_KG=\eOt " 4
+set t_KH=\eOu " 5
+set t_KI=\eOv " 6
+set t_KJ=\eOw " 7
+set t_KK=\eOx " 8
+set t_KL=\eOy " 9
+
 " Unhighlight search results
 nmap <C-l> :nohlsearch<CR>:redraw!<CR>