From a72ba7342c9a0561626a35e037e32e0930f1d2df Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 7 Apr 2020 02:48:49 +0300 Subject: [PATCH] .vimrc: Map keypad keys to arrows --- .vimrc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.vimrc b/.vimrc index 63217bc..b0a7f7b 100644 --- a/.vimrc +++ b/.vimrc @@ -268,6 +268,26 @@ else set t_Sb="\e[4%dm" endif + " KP_Up -> Up + map Ox OA + map! Ox OA + " KP_Down -> Down + map Or OB + map! Or OB + " KP_Right -> Right + map Ov OC + map! Ov OC + " KP_Left -> Left + map Ot OD + map! Ot OD + " KP_Home -> Home + map Ow [7~ + map! Ow [7~ + " KP_End -> End + map Oq [8~ + map! Oq [8~ + " KP_Prev (PgDn) and KP_Next (PgUp) work fine, no mapping is required + " 'autoselect' to always put selected text on the clipboard; " 'unnamed' to use the * register like unnamed register '*' " for all yank, delete and put operations; -- 2.39.5