diff options
author | Kevin Le <solnovus@gmail.com> | 2011-01-18 22:48:55 -0800 |
---|---|---|
committer | Kevin Le <solnovus@gmail.com> | 2011-01-18 22:48:55 -0800 |
commit | 5331c9c2bc443a59e5d8f8d07ab12b58d8f33e80 (patch) | |
tree | 2f1d19b3ba564965d3b28177b1397ed2f6a46117 | |
parent | 97c3920b1c16fbdd55584e848d690b92c096c176 (diff) |
fixed end of word motion for examples like 'testTest'
-rw-r--r-- | autoload/camelcasemotion.vim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/autoload/camelcasemotion.vim b/autoload/camelcasemotion.vim index 41e26c9..a0e8e14 100644 --- a/autoload/camelcasemotion.vim +++ b/autoload/camelcasemotion.vim @@ -32,7 +32,7 @@ function! s:Move( direction, count, mode ) "call search( '\>\|\(\a\|\d\)\+\ze_', 'We' ) " end of ... " number | ACRONYM followed by CamelCase or number | CamelCase | underscore_notation | non-keyword | word - call search( '\d\+\|\u\+\ze\%(\u\l\|\d\)\|\u\l\+\|\%(\a\|\d\)\+\ze_\|\%(\k\@!\S\)\+\|\%(_\@!\k\)\+\>', 'We' ) + call search( '\d\+\|\u\+\ze\%(\u\l\|\d\)\|\l\+\ze\%(\u\|\d\)\|\u\l\+\|\%(\a\|\d\)\+\ze_\|\%(\k\@!\S\)\+\|\%(_\@!\k\)\+\>', 'We' ) " Note: word must be defined as '\k\>'; '\>' on its own somehow " dominates over the previous branch. Plus, \k must exclude the " underscore, or a trailing one will be incorrectly moved over: |