From: Oleg Broytman Date: Mon, 6 Apr 2020 23:48:49 +0000 (+0300) Subject: .vimrc: Map keypad keys to arrows X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=a72ba7342c9a0561626a35e037e32e0930f1d2df;p=dotfiles.git .vimrc: Map keypad keys to arrows --- 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;