For the record, I have gone through the solutions at this wiki:
http://vim.wikia.com/wiki/Moving_through_camel_case_words; however, I was
still left wondering if there has been an attempt to solve the camel case
word movement natively in Vim, as a lot of code does use this convention.

I was thinking of a simple extension: key off the 'iskeyword' option
in-addition with a 'camelcase_keyword_movement' boolean option which would
treat the 'iskeyword' as separate character sets.

An example:
set iskeyword = 'A-Z,a-z,0-9,_' .
set camelcase_keyword_movement = 1

The keyword list is broken up into different sets: [A-Z],[a-z],[0-9],[_].
>From an implementation perspective, movement will break everytime we hit a
character that is in a different set when traversing "words". All vim
movement commands should implicitly derive this functionality (I hope :) ).

In the other case, where camelcase_keyword_movement = 0, it will be just
default behavior.

Thoughts?

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui