From b9e8d20523a7bf05e02468efd97bbcf90f18a1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 20 Jan 2016 12:56:38 +0100 Subject: vis: make in insert/replace mode move to the end of line The behaviour of vs $ in various modes may still be inconsistent, but at least it can now be configured via key bindings. --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 7cb7350..8384ff6 100644 --- a/main.c +++ b/main.c @@ -126,6 +126,7 @@ enum { VIS_ACTION_CURSOR_LINE_FINISH, VIS_ACTION_CURSOR_LINE_BEGIN, VIS_ACTION_CURSOR_LINE_END, + VIS_ACTION_CURSOR_LINE_LASTCHAR, VIS_ACTION_CURSOR_SCREEN_LINE_UP, VIS_ACTION_CURSOR_SCREEN_LINE_DOWN, VIS_ACTION_CURSOR_SCREEN_LINE_BEGIN, @@ -352,6 +353,11 @@ static KeyAction vis_action[] = { [VIS_ACTION_CURSOR_LINE_END] = { "cursor-line-end", "Move cursor to end of the line", + movement, { .i = VIS_MOVE_LINE_END } + }, + [VIS_ACTION_CURSOR_LINE_LASTCHAR] = { + "cursor-line-lastchar", + "Move cursor to last character of the line", movement, { .i = VIS_MOVE_LINE_LASTCHAR } }, [VIS_ACTION_CURSOR_SCREEN_LINE_UP] = { -- cgit v1.2.3