vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit a83d714f6d9b56f6fc1e02f904e4d9b700395c9f
parent 93804f51a350c3eb1f1d300c77e89104541a403b
Author: Marc André Tanner <mat@brain-dump.org>
Date: Sat, 27 Sep 2014 21:48:13 +0200
Hook up shifting in insert mode via CTRL-{D,T}
Diffstat:
| M | config.def.h | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/config.def.h b/config.def.h @@ -526,6 +526,8 @@ static KeyBinding vis_mode_insert[] = { { { CONTROL('M') }, insert_newline, { NULL } }, { { CONTROL('O') }, switchmode, { .i = VIS_MODE_OPERATOR } }, { { CONTROL('V') }, insert_verbatim, { NULL } }, + { { CONTROL('D') }, operator_twice, { .i = OP_SHIFT_LEFT } }, + { { CONTROL('T') }, operator_twice, { .i = OP_SHIFT_RIGHT } }, { { NONE('\t') }, insert_tab, { NULL } }, { /* empty last element, array terminator */ }, };