From 0280cf83b32ea9cbcdce1cf470fa74da5fe44ccb Mon Sep 17 00:00:00 2001 From: Rob Pilling Date: Tue, 12 Apr 2016 22:56:30 +0100 Subject: Add "[(" and "])" motions for jumping to a parenthese pair's start/end --- main.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index c3437c7..f95d98f 100644 --- a/main.c +++ b/main.c @@ -161,6 +161,8 @@ enum { VIS_ACTION_CURSOR_FUNCTION_END_NEXT, VIS_ACTION_CURSOR_BLOCK_START, VIS_ACTION_CURSOR_BLOCK_END, + VIS_ACTION_CURSOR_PARENTHESE_START, + VIS_ACTION_CURSOR_PARENTHESE_END, VIS_ACTION_CURSOR_COLUMN, VIS_ACTION_CURSOR_LINE_FIRST, VIS_ACTION_CURSOR_LINE_LAST, @@ -477,6 +479,16 @@ static const KeyAction vis_action[] = { "Move cursor to the closing curly brace in a block", movement, { .i = VIS_MOVE_BLOCK_END } }, + [VIS_ACTION_CURSOR_PARENTHESE_START] = { + "cursor-parenthese-start", + "Move cursor to the opening parenthese inside a pair of parentheses", + movement, { .i = VIS_MOVE_PARENTHESE_START } + }, + [VIS_ACTION_CURSOR_PARENTHESE_END] = { + "cursor-parenthese-end", + "Move cursor to the closing parenthese inside a pair of parentheses", + movement, { .i = VIS_MOVE_PARENTHESE_END } + }, [VIS_ACTION_CURSOR_COLUMN] = { "cursor-column", "Move cursor to given column of current line", -- cgit v1.2.3