aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-02-15 08:25:23 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-02-15 08:27:59 +0100
commit749e6f9a50d5570d40c2c5f1ebc3eaceb32776da (patch)
treea6d6d0dafc4fdb4a8f5bea2e6a9c2ea72263a51d /main.c
parentd266238916882b4082b3ddbb71941aea5e7d20ef (diff)
downloadvis-749e6f9a50d5570d40c2c5f1ebc3eaceb32776da.tar.gz
vis-749e6f9a50d5570d40c2c5f1ebc3eaceb32776da.tar.xz
vis: remove motion and text objects related to C functions
These do not really belong into the editor core. If desired they could be implemented in Lua instead.
Diffstat (limited to 'main.c')
-rw-r--r--main.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/main.c b/main.c
index 98e8ae5..e5940c5 100644
--- a/main.c
+++ b/main.c
@@ -168,10 +168,6 @@ enum {
VIS_ACTION_CURSOR_PARAGRAPH_NEXT,
VIS_ACTION_CURSOR_SENTENCE_PREV,
VIS_ACTION_CURSOR_SENTENCE_NEXT,
- VIS_ACTION_CURSOR_FUNCTION_START_PREV,
- VIS_ACTION_CURSOR_FUNCTION_END_PREV,
- VIS_ACTION_CURSOR_FUNCTION_START_NEXT,
- VIS_ACTION_CURSOR_FUNCTION_END_NEXT,
VIS_ACTION_CURSOR_BLOCK_START,
VIS_ACTION_CURSOR_BLOCK_END,
VIS_ACTION_CURSOR_PARENTHESE_START,
@@ -303,8 +299,6 @@ enum {
VIS_ACTION_TEXT_OBJECT_BACKTICK_INNER,
VIS_ACTION_TEXT_OBJECT_ENTIRE_OUTER,
VIS_ACTION_TEXT_OBJECT_ENTIRE_INNER,
- VIS_ACTION_TEXT_OBJECT_FUNCTION_OUTER,
- VIS_ACTION_TEXT_OBJECT_FUNCTION_INNER,
VIS_ACTION_TEXT_OBJECT_LINE_OUTER,
VIS_ACTION_TEXT_OBJECT_LINE_INNER,
VIS_ACTION_TEXT_OBJECT_INDENTATION,
@@ -484,26 +478,6 @@ static const KeyAction vis_action[] = {
"Move cursor sentence forward",
movement, { .i = VIS_MOVE_SENTENCE_NEXT }
},
- [VIS_ACTION_CURSOR_FUNCTION_START_PREV] = {
- "cursor-function-start-prev",
- "Move cursor backwards to start of function",
- movement, { .i = VIS_MOVE_FUNCTION_START_PREV }
- },
- [VIS_ACTION_CURSOR_FUNCTION_START_NEXT] = {
- "cursor-function-start-next",
- "Move cursor forwards to start of function",
- movement, { .i = VIS_MOVE_FUNCTION_START_NEXT }
- },
- [VIS_ACTION_CURSOR_FUNCTION_END_PREV] = {
- "cursor-function-end-prev",
- "Move cursor backwards to end of function",
- movement, { .i = VIS_MOVE_FUNCTION_END_PREV }
- },
- [VIS_ACTION_CURSOR_FUNCTION_END_NEXT] = {
- "cursor-function-end-next",
- "Move cursor forwards to end of function",
- movement, { .i = VIS_MOVE_FUNCTION_END_NEXT }
- },
[VIS_ACTION_CURSOR_BLOCK_START] = {
"cursor-block-start",
"Move cursor to the opening curly brace in a block",
@@ -1159,16 +1133,6 @@ static const KeyAction vis_action[] = {
"The whole text content, except for leading and trailing empty lines",
textobj, { .i = VIS_TEXTOBJECT_INNER_ENTIRE }
},
- [VIS_ACTION_TEXT_OBJECT_FUNCTION_OUTER] = {
- "text-object-function-outer",
- "A whole C-like function",
- textobj, { .i = VIS_TEXTOBJECT_OUTER_FUNCTION }
- },
- [VIS_ACTION_TEXT_OBJECT_FUNCTION_INNER] = {
- "text-object-function-inner",
- "A whole C-like function body",
- textobj, { .i = VIS_TEXTOBJECT_INNER_FUNCTION }
- },
[VIS_ACTION_TEXT_OBJECT_LINE_OUTER] = {
"text-object-line-outer",
"The whole line",