Arnis Lapsa
Arnis Lapsa

Reputation: 47567

How to jump to next word in vim when pascal case is used?

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

Answers (2)

Dave
Dave

Reputation: 7025

How's this for size:

http://vim.wikia.com/wiki/Moving_through_camel_case_words

Upvotes: 0

user197015
user197015

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

Related Questions