diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2015-08-01 19:50:56 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2015-08-02 00:13:51 +0200 |
| commit | dec8bc0015c9fc0e6f4283557cb088718348ec80 (patch) | |
| tree | 2ea272cd29595a2810d4801244899bd34067729e /config.def.h | |
| parent | dd3a6e2d9487c970fd007989833fc68a3261183a (diff) | |
| download | vis-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.h | 2 |
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 */ }, }; |
