vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 6295e4de274923e14aecfa4dd5692a780e7d947e parent b86c059584c59fbcf1547b9454099b90fa1d6067 Author: Marc André Tanner <mat@brain-dump.org> Date: Wed, 24 Jan 2018 20:29:44 +0100 vis: insert literal new line upon <C-j> in insert mode Diffstat:
| M | config.def.h | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/config.def.h b/config.def.h @@ -330,7 +330,7 @@ static const KeyBinding bindings_readline[] = { static const KeyBinding bindings_insert[] = { { "<C-d>", ALIAS("<vis-operator-shift-left><vis-operator-shift-left>") }, { "<C-i>", ALIAS("<Tab>") }, - { "<C-j>", ALIAS("<Enter>") }, + { "<C-j>", ALIAS("<vis-insert-verbatim>u000a") }, { "<C-m>", ALIAS("<Enter>") }, { "<C-r>", ACTION(INSERT_REGISTER) }, { "<C-t>", ALIAS("<vis-operator-shift-right><vis-operator-shift-right>") },