Use upper-case as word separator in Sublime Text 2
sublimetext2
Solution
You can move by "Subword" with the following Keybinds:
{ "keys": ["alt+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
{ "keys": ["alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
This recognizes camelCase and under_score.
You can also move by Word with
{ "keys": ["ctrl+left"], "command": "move", "args": {"by": "words", "forward": false} },
{ "keys": ["ctrl+right"], "command": "move", "args": {"by": "word_ends", "forward": true} }
This recognizes "word separators" as specified in your settings file.
Problem
I can't find out how to use upper-case letters as word separators in Sublime Text 2. What I want is the following behaviour: in some C++ IDE I like, using ctrl+left/right when cursor is in a word like thisIsAComposedWord will move cursor to next upper case in the word (or to the beginning/end of the word). There's something in Sublime text called "word separators" that seems to do that, it appears his way in the default preferences file: ``` // Characters that are considered to separate words "word_separators": "./\\()\"'-:,.;<>~!@#$%^&*|+=[]{}`~?", ``` So can I insert upper-case in that list? Thanks.