vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 7d5b0ff3d9f9c02aab1c57f7462ee60c3b11afb8
parent bf63d59ddce6d28b358ac575a3b7de4cdaa70cca
Author: Marc André Tanner <mat@brain-dump.org>
Date: Thu, 11 Sep 2014 09:41:47 +0200
On the prompt Ctrl-{B,E} should move the cursor to the begin/end of the line
Diffstat:
| M | config.def.h | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/config.def.h b/config.def.h @@ -399,7 +399,9 @@ static KeyBinding vis_prompt_mode[] = { { { KEY(UP) }, prompt_up, { NULL } }, { { KEY(DOWN) }, prompt_down, { NULL } }, { { KEY(HOME) }, movement, { .i = MOVE_FILE_BEGIN } }, + { { CONTROL('B') }, movement, { .i = MOVE_FILE_BEGIN } }, { { KEY(END) }, movement, { .i = MOVE_FILE_END } }, + { { CONTROL('E') }, movement, { .i = MOVE_FILE_END } }, { /* empty last element, array terminator */ }, };