CamelCaseMotion icon indicating copy to clipboard operation
CamelCaseMotion copied to clipboard

Prevents some characters being included when doing iw

Open genesy opened this issue 4 years ago • 3 comments

I'm sure there's a better way to do this but for me right now this works.

Adds comma, space, and newline to list of regex to watch out for. Fixes https://github.com/bkad/CamelCaseMotion/issues/17

genesy avatar Feb 18 '20 17:02 genesy

fixes CamelCaseMotion_iw but breaks CamelCaseMotion_w for me

With the brackets indicating the cursor position, if I have [w]ord word and call CamelCaseMotion_w, I'll get word[ ]word

bkad avatar Feb 18 '20 22:02 bkad

Weirdly works fine for me when doing CamelCaseMotion_w

genesy avatar Feb 19 '20 06:02 genesy

Seems odd to me that that would be the case when you've added whitespace as something it should consider to be the start of the next word: call add(s:forward_to_next_list, '\s').

bkad avatar Feb 19 '20 23:02 bkad