Skip to content

Commit

Permalink
match braces, parens, and brackets on word movement
Browse files Browse the repository at this point in the history
fixes #32
  • Loading branch information
bkad committed Feb 28, 2017
1 parent ad2326d commit 9591907
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions autoload/camelcasemotion.vim
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ call add(s:forward_to_next_list, '\m\<\D') " word
call add(s:forward_to_next_list, '^$') " empty line
call add(s:forward_to_next_list, '\%(^\|\s\)\+\zs\k\@!\S') " non-keyword after whitespaces
call add(s:forward_to_next_list, '\>\<') " non-whitespace after word
call add(s:forward_to_next_list, '[{}\[\]()<>]') " brackets, parens, braces
call add(s:forward_to_next_list, '\d\+') " number
call add(s:forward_to_next_list, '\l\+\zs\%(\u\|\d\)') " lowercase followed by capital letter or number
call add(s:forward_to_next_list, '\u\+\zs\%(\u\l\|\d\)') " ALLCAPS followed by CamelCase or number
Expand Down

0 comments on commit 9591907

Please sign in to comment.