Reputation: 47567
I would like to move carret to Bar
in FooBarFizzBuzz
in vim. How to do that?
How to make w
'pascal case aware'? Is there any other stroke already for this?
Upvotes: 1
Views: 615
Reputation: 7025
How's this for size:
http://vim.wikia.com/wiki/Moving_through_camel_case_words
Upvotes: 0
Reputation:
This may be what you're looking for: http://vim.wikia.com/wiki/Moving_through_camel_case_words
It explains various ways to set up the behavior you're describing (with increasing levels of complexity / completeness) as well as a link to a script that appears to have more configuration options). The examples are for mapping the arrow keys but you could presumably remap w and such if you liked.
Upvotes: 4