vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit ff35677a4fb60eaba22f4aea6e9649f4f7e308ea
parent d1f52ee7dd8b3958621ad294bf59f5331e15e931
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Sat,  6 Sep 2014 21:50:56 +0200

Add visual mode key bindings

Diffstat:
Mconfig.def.h | 13+++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)

diff --git 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) {