aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2015-08-01 19:50:56 +0200
committerMarc André Tanner <mat@brain-dump.org>2015-08-02 00:13:51 +0200
commitdec8bc0015c9fc0e6f4283557cb088718348ec80 (patch)
tree2ea272cd29595a2810d4801244899bd34067729e /config.def.h
parentdd3a6e2d9487c970fd007989833fc68a3261183a (diff)
downloadvis-dec8bc0015c9fc0e6f4283557cb088718348ec80.tar.gz
vis-dec8bc0015c9fc0e6f4283557cb088718348ec80.tar.xz
vis: add text objects `af` and `if`
They try to match C-like function definitions. The inner variant only contains the function body.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h2
1 files changed, 2 insertions, 0 deletions
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 */ },
};