bkad / CamelCaseMotion

A vim script to provide CamelCase motion through words (fork of inkarkat's camelcasemotion script)
589 stars 45 forks source link

Possibly unintended behaviour with Camel Case #31

Closed ankitsultana closed 7 years ago

ankitsultana commented 8 years ago

Consider I have the following text:

ThisSh|o|uldNotWorkLikeThis

If I do ci,w, I get this:

ThisotWorkLikeThis

I really think that N should not be deleted. In other words, ci,w deletes the current camel word and the first letter of the next camel word. Is this the intended behaviour? Because I checked out a few of the previous commits to see if this was unintended, but seems like this has existed for a pretty long time.

cstanfill commented 8 years ago

I also ran into this behavior today having just installed this plugin. It seems questionable to me, too (I'd prefer that i,w work as you suggest), but you can workaround by doing ci,e in that case.

ninrod commented 8 years ago

I also have this problem. I first ran into this problem at least a year ago.

bkad commented 7 years ago

Thanks for the fix, @jpassaro!