aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-11-02 16:47:25 +0100
committerMarc André Tanner <mat@brain-dump.org>2015-11-02 16:48:26 +0100
commit70161802d697a87f8b7c7d9d1c3624c6d3b6f62c (patch)
treeeb21f9987ed6aecb4d556ae58b90e2f74736192b /main.c
parent360e998c3e89bc40112b0dd44a39fad6add9bbb4 (diff)
downloadvis-70161802d697a87f8b7c7d9d1c3624c6d3b6f62c.tar.gz
vis-70161802d697a87f8b7c7d9d1c3624c6d3b6f62c.tar.xz
vis: make I command repeatable
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index 3a28e75..4cc00cd 100644
--- a/main.c
+++ b/main.c
@@ -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",