vis

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

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

commit 52accfae3374a8360e211b282ae4df792da7dada
parent fb15f5b441caabe37d37835f75ba53375572bcf6
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed, 24 Sep 2014 20:19:30 +0200

Implement 'ZZ' and 'ZQ'

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

diff --git a/config.def.h b/config.def.h @@ -394,6 +394,8 @@ static KeyBinding vis_mode_normal[] = { { { CONTROL('R') }, redo, { NULL } }, { { CONTROL('L') }, call, { .f = editor_draw } }, { { NONE(':') }, prompt, { .s = ":" } }, + { { NONE('Z'), NONE('Z') }, cmd, { .s = "wq" } }, + { { NONE('Z'), NONE('Q') }, cmd, { .s = "q!" } }, { /* empty last element, array terminator */ }, };