liaogang
liaogang

Reputation: 518

How to find the first uppercase letter of a word in vim?

e. g.
applicatonLoader
unixHater

I want to find 'L' in applicationLoader,
or 'H' in unixHater.

Upvotes: 10

Views: 1905

Answers (1)

Caek
Caek

Reputation: 592

You could search for \u:

/\u

Then use n to jump to the next occurrence. Note that this matches all capitals, not just the first in the word.

Edit: If you only want to jump to the first Capital in words, such as the E in oneExampleCase and skip the rest in the word, you could search for:

/\u\w*

Upvotes: 13

Related Questions