vis

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

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

commit 82b2acc2076384348c0168b6bb0919542568b374
parent 6be1b08b3cf464f11cccc77917f00d0c29d259e5
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Fri, 12 Sep 2014 10:29:33 +0200

Make normal mode command 'x' undoable

Diffstat:
Mconfig.def.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/config.def.h b/config.def.h @@ -344,7 +344,7 @@ static KeyBinding vis_normal[] = { { { NONE('o') }, openline, { .i = MOVE_LINE_NEXT } }, { { NONE('O') }, openline, { .i = MOVE_LINE_PREV } }, { { NONE('J') }, joinline, { .i = MOVE_LINE_NEXT } }, - { { NONE('x') }, call, { .f = editor_delete_key } }, + { { NONE('x') }, delete, { .i = MOVE_CHAR_NEXT } }, { { NONE('r') }, replace, { NULL } }, { { NONE('i') }, switchmode, { .i = VIS_MODE_INSERT } }, { { NONE('v') }, switchmode, { .i = VIS_MODE_VISUAL } },