diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-06 21:50:56 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-06 21:50:56 +0200 |
| commit | 16cc6025a0bef7875a9f3426077beecc71cabde6 (patch) | |
| tree | 41e5f9fde1811c5a702ed6da263e6225082dab70 /config.def.h | |
| parent | dd42790d7f5c7e0b4541ed1a3e6be7d417f9f634 (diff) | |
| download | vis-16cc6025a0bef7875a9f3426077beecc71cabde6.tar.gz vis-16cc6025a0bef7875a9f3426077beecc71cabde6.tar.xz | |
Add visual mode key bindings
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 13 |
1 files 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) { |
