aboutsummaryrefslogtreecommitdiff
path: root/vis-motions.c
diff options
context:
space:
mode:
authorRob Pilling <robpilling@gmail.com>2016-04-12 22:56:30 +0100
committerRob Pilling <robpilling@gmail.com>2016-04-12 22:56:30 +0100
commit0280cf83b32ea9cbcdce1cf470fa74da5fe44ccb (patch)
tree0f9f28e8be29fd476fedd4efadb93f0af5be0941 /vis-motions.c
parent255da074c15de15d45eb1582c819d68ee480800d (diff)
downloadvis-0280cf83b32ea9cbcdce1cf470fa74da5fe44ccb.tar.gz
vis-0280cf83b32ea9cbcdce1cf470fa74da5fe44ccb.tar.xz
Add "[(" and "])" motions for jumping to a parenthese pair's start/end
Diffstat (limited to 'vis-motions.c')
-rw-r--r--vis-motions.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vis-motions.c b/vis-motions.c
index b89f94c..33784ff 100644
--- a/vis-motions.c
+++ b/vis-motions.c
@@ -368,6 +368,8 @@ const Movement vis_motions[] = {
[VIS_MOVE_FUNCTION_END_NEXT] = { .txt = text_function_end_next, .type = LINEWISE|JUMP },
[VIS_MOVE_BLOCK_START] = { .txt = text_block_start, .type = JUMP },
[VIS_MOVE_BLOCK_END] = { .txt = text_block_end, .type = JUMP },
+ [VIS_MOVE_PARENTHESE_START] = { .txt = text_parenthese_start, .type = JUMP },
+ [VIS_MOVE_PARENTHESE_END] = { .txt = text_parenthese_end, .type = JUMP },
[VIS_MOVE_BRACKET_MATCH] = { .txt = bracket_match, .type = INCLUSIVE|JUMP },
[VIS_MOVE_FILE_BEGIN] = { .txt = text_begin, .type = LINEWISE|JUMP },
[VIS_MOVE_FILE_END] = { .txt = text_end, .type = LINEWISE|JUMP },