diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-11-02 16:47:25 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-11-02 16:48:26 +0100 |
| commit | 70161802d697a87f8b7c7d9d1c3624c6d3b6f62c (patch) | |
| tree | eb21f9987ed6aecb4d556ae58b90e2f74736192b /main.c | |
| parent | 360e998c3e89bc40112b0dd44a39fad6add9bbb4 (diff) | |
| download | vis-70161802d697a87f8b7c7d9d1c3624c6d3b6f62c.tar.gz vis-70161802d697a87f8b7c7d9d1c3624c6d3b6f62c.tar.xz | |
vis: make I command repeatable
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -202,6 +202,7 @@ enum { VIS_ACTION_WINDOW_PREV, VIS_ACTION_APPEND_CHAR_NEXT, VIS_ACTION_APPEND_LINE_END, + VIS_ACTION_INSERT_LINE_START, VIS_ACTION_OPEN_LINE_ABOVE, VIS_ACTION_OPEN_LINE_BELOW, VIS_ACTION_JOIN_LINE_BELOW, @@ -744,6 +745,11 @@ static KeyAction vis_action[] = { "Append text after the end of the line", insertmode, { .i = MOVE_LINE_END }, }, + [VIS_ACTION_INSERT_LINE_START] = { + "insert-line-start", + "Insert text before the first non-blank in the line", + insertmode, { .i = MOVE_LINE_START }, + }, [VIS_ACTION_OPEN_LINE_ABOVE] = { "open-line-above", "Begin a new line above the cursor", |
