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 /vis.c | |
| 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 'vis.c')
| -rw-r--r-- | vis.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -257,6 +257,8 @@ enum { TEXT_OBJ_INNER_BACKTICK, TEXT_OBJ_OUTER_ENTIRE, TEXT_OBJ_INNER_ENTIRE, + TEXT_OBJ_OUTER_FUNCTION, + TEXT_OBJ_INNER_FUNCTION, }; static TextObject textobjs[] = { @@ -282,6 +284,8 @@ static TextObject textobjs[] = { [TEXT_OBJ_INNER_BACKTICK] = { text_object_backtick, INNER }, [TEXT_OBJ_OUTER_ENTIRE] = { text_object_entire, }, [TEXT_OBJ_INNER_ENTIRE] = { text_object_entire_inner, }, + [TEXT_OBJ_OUTER_FUNCTION] = { text_object_function, }, + [TEXT_OBJ_INNER_FUNCTION] = { text_object_function_inner, }, }; /** functions to be called from keybindings */ |
