diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-01-20 12:56:38 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-01-20 12:56:38 +0100 |
| commit | b9e8d20523a7bf05e02468efd97bbcf90f18a1e0 (patch) | |
| tree | d9bfb959b09bce405216449aad0f3a526f7bfcc1 /main.c | |
| parent | a552b071a0f88153ba5ff462fcdf4461ff4f2a16 (diff) | |
| download | vis-b9e8d20523a7bf05e02468efd97bbcf90f18a1e0.tar.gz vis-b9e8d20523a7bf05e02468efd97bbcf90f18a1e0.tar.xz | |
vis: make <End> in insert/replace mode move to the end of line
The behaviour of <End> vs $ in various modes may still be
inconsistent, but at least it can now be configured via
key bindings.
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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] = { |
