diff options
author | Kevin Le <solnovus@gmail.com> | 2017-02-27 15:59:28 -0800 |
---|---|---|
committer | Kevin Le <solnovus@gmail.com> | 2017-02-27 16:18:57 -0800 |
commit | 9591907dde8af4d8d7fbe14e99ec7d7e01791fec (patch) | |
tree | 082b1d3ddd4eea50f429207fb7d79e6dd0bfadf8 | |
parent | ad2326d0989bf2f2c3be83d9cd3b8edf260f10d6 (diff) | |
download | camelcasemotion-9591907dde8af4d8d7fbe14e99ec7d7e01791fec.tar.gz camelcasemotion-9591907dde8af4d8d7fbe14e99ec7d7e01791fec.tar.bz2 |
match braces, parens, and brackets on word movement
fixes #32
-rw-r--r-- | autoload/camelcasemotion.vim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/autoload/camelcasemotion.vim b/autoload/camelcasemotion.vim index 6b6dd50..eebcc74 100644 --- a/autoload/camelcasemotion.vim +++ b/autoload/camelcasemotion.vim @@ -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 |