vis

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

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

commit 022893a60f1fe8363c3e9b53f0309a12bad6ab9d
parent 7be1e8bab2fb974ace8dc3721019ab0c04da717b
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Mon,  8 Sep 2014 12:18:58 +0200

Make Home/End keys work in command prompt

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

diff --git a/config.def.h b/config.def.h @@ -703,6 +703,8 @@ static KeyBinding vis_prompt_mode[] = { { { CONTROL('J') }, prompt_enter, { NULL } }, { { KEY(UP) }, prompt_up, { NULL } }, { { KEY(DOWN) }, prompt_down, { NULL } }, + { { KEY(HOME) }, movement, { .i = MOVE_FILE_BEGIN } }, + { { KEY(END) }, movement, { .i = MOVE_FILE_END } }, { /* empty last element, array terminator */ }, };