From 44c8e46bc0a94c82dbbf2f13e2897c951f1e3b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 15 Feb 2016 16:05:18 +0100 Subject: Add text object to cover lines with same indentation level By default it is mapped to i and a however there is currently no difference between the inner and regular version. --- main.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 6b746ef..2f49bff 100644 --- a/main.c +++ b/main.c @@ -272,6 +272,7 @@ enum { VIS_ACTION_TEXT_OBJECT_FUNCTION_INNER, VIS_ACTION_TEXT_OBJECT_LINE_OUTER, VIS_ACTION_TEXT_OBJECT_LINE_INNER, + VIS_ACTION_TEXT_OBJECT_INDENTATION, VIS_ACTION_TEXT_OBJECT_SEARCH_FORWARD, VIS_ACTION_TEXT_OBJECT_SEARCH_BACKWARD, VIS_ACTION_MOTION_CHARWISE, @@ -1060,6 +1061,11 @@ static const KeyAction vis_action[] = { "The whole line, excluding leading and trailing whitespace", textobj, { .i = VIS_TEXTOBJECT_INNER_LINE } }, + [VIS_ACTION_TEXT_OBJECT_INDENTATION] = { + "text-object-indentation", + "All adjacent lines with the same indentation level as the current one", + textobj, { .i = VIS_TEXTOBJECT_INDENTATION } + }, [VIS_ACTION_TEXT_OBJECT_SEARCH_FORWARD] = { "text-object-search-forward", "The next search match in forward direction", -- cgit v1.2.3