From 16cc6025a0bef7875a9f3426077beecc71cabde6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 6 Sep 2014 21:50:56 +0200 Subject: Add visual mode key bindings --- config.def.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 9c055ca..f4d20a3 100644 --- a/config.def.h +++ b/config.def.h @@ -643,8 +643,17 @@ static KeyBinding vis_normal[] = { }; static KeyBinding vis_visual[] = { - { { NONE(ESC) }, switchmode, { .i = VIS_MODE_NORMAL } }, - { /* empty last element, array terminator */ }, + { { NONE(ESC) }, switchmode, { .i = VIS_MODE_NORMAL } }, + { { CONTROL('c') }, switchmode, { .i = VIS_MODE_NORMAL } }, + BACKSPACE( operator, i, OP_DELETE ), + { { CONTROL('H') }, operator, { .i = OP_DELETE } }, + { { NONE('d') }, operator, { .i = OP_DELETE } }, + { { NONE('x') }, operator, { .i = OP_DELETE } }, + { { NONE('y') }, operator, { .i = OP_YANK } }, + { { NONE('c') }, operator, { .i = OP_CHANGE } }, + { { NONE('r') }, operator, { .i = OP_CHANGE } }, + { { NONE('s') }, operator, { .i = OP_CHANGE } }, + { /* empty last element, array terminator */ }, }; static void vis_visual_enter(void) { -- cgit v1.2.3