1

I would like a quick way to move between parts of a word e.g.:

this_is_a_variable_name
^    ^  ^ ^        ^

thisIsAFunctionName
^   ^ ^^       ^

This would increase the speed in certain situations when only part of the word needs to be modified / deleted e.g.:

+--------+----------------------+------------------+---------------------+
| change | k_error_write_stream | sendAckMessage   | printMessageAndExit |
| to     | k_error_read_stream  | sendReplyMessage | printMessage        |
+--------+----------------------+------------------+---------------------+
0

1 Answer 1

4

camelcasemotion (http://www.vim.org/scripts/script.php?script_id=1905) is a vim plugin that adds this feature. It sets up mappings for ,w ,b ,e behaving like Vi's own w b e but for both CamelCase and underscore_naming.

2
  • 1
    If you don't like the key bindings, you can always download the plugin, see how the mechanics work and set your own mappings.
    – davur
    Aug 21, 2014 at 6:28
  • 1
    If you don't like the key bindings... read the configuration section of the plugin.
    – FDinoff
    Aug 22, 2014 at 3:19

Not the answer you're looking for? Browse other questions tagged .