From dec8bc0015c9fc0e6f4283557cb088718348ec80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 1 Aug 2015 19:50:56 +0200 Subject: vis: add text objects `af` and `if` They try to match C-like function definitions. The inner variant only contains the function body. --- config.def.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 910e1e7..a2eabee 100644 --- a/config.def.h +++ b/config.def.h @@ -170,6 +170,7 @@ static KeyBinding vis_textobjs[] = { { { NONE('a'), NONE('\'') }, textobj, { .i = TEXT_OBJ_OUTER_SINGLE_QUOTE } }, { { NONE('a'), NONE('`') }, textobj, { .i = TEXT_OBJ_OUTER_BACKTICK } }, { { NONE('a'), NONE('e') }, textobj, { .i = TEXT_OBJ_OUTER_ENTIRE } }, + { { NONE('a'), NONE('f') }, textobj, { .i = TEXT_OBJ_OUTER_FUNCTION } }, { /* empty last element, array terminator */ }, }; @@ -192,6 +193,7 @@ static KeyBinding vis_inner_textobjs[] = { { { NONE('i'), NONE('\'') }, textobj, { .i = TEXT_OBJ_INNER_SINGLE_QUOTE } }, { { NONE('i'), NONE('`') }, textobj, { .i = TEXT_OBJ_INNER_BACKTICK } }, { { NONE('i'), NONE('e') }, textobj, { .i = TEXT_OBJ_INNER_ENTIRE } }, + { { NONE('i'), NONE('f') }, textobj, { .i = TEXT_OBJ_INNER_FUNCTION } }, { /* empty last element, array terminator */ }, }; -- cgit v1.2.3