added vi-like key-bindings for keyboards without cursor keys (they are undocumented features)
arg@mig29 unknown
Thu, 14 Dec 2006 14:40:58 +0100
M
main.c
→
main.c
@@ -178,6 +178,29 @@ return;
break; } } + if(e->state & Mod1Mask) { + switch(ksym) { + default: return; + case XK_h: + ksym = XK_Left; + break; + case XK_l: + ksym = XK_Right; + break; + case XK_j: + ksym = XK_Next; + break; + case XK_l: + ksym = XK_Prior; + break; + case XK_g: + ksym = XK_Home; + break; + case XK_G: + ksym = XK_End; + break; + } + } switch(ksym) { default: if(num && !iscntrl((int) buf[0])) {