From 70161802d697a87f8b7c7d9d1c3624c6d3b6f62c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 2 Nov 2015 16:47:25 +0100 Subject: vis: make I command repeatable --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.c') 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", -- cgit v1.2.3