vis

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

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

commit 4e1b8b749963aa2b89269dd05a5c72623aaddb70
parent 5f035630cc9b8b0fb3c209318f85af8d423089b6
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed,  8 Feb 2017 22:55:10 +0100

vis: improve <C-d> and <C-t> implementation in insert mode

Fix #487

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

diff --git a/config.def.h b/config.def.h @@ -324,14 +324,14 @@ static const KeyBinding bindings_readline[] = { }; static const KeyBinding bindings_insert[] = { - { "<C-d>", ALIAS("<Escape><<i") }, + { "<C-d>", ALIAS("<vis-operator-shift-left><vis-operator-shift-left>") }, { "<C-i>", ALIAS("<Tab>") }, { "<C-j>", ALIAS("<Enter>") }, { "<C-n>", ACTION(COMPLETE_WORD) }, { "<C-x><C-f>", ACTION(COMPLETE_FILENAME) }, { "<C-m>", ALIAS("<Enter>") }, { "<C-r>", ACTION(INSERT_REGISTER) }, - { "<C-t>", ALIAS("<Escape>>>i") }, + { "<C-t>", ALIAS("<vis-operator-shift-right><vis-operator-shift-right>") }, { "<C-x><C-e>", ACTION(WINDOW_SLIDE_UP) }, { "<C-x><C-y>", ACTION(WINDOW_SLIDE_DOWN) }, { "<Enter>", ACTION(INSERT_NEWLINE) },