CamelCaseMotion
CamelCaseMotion copied to clipboard
Prevents some characters being included when doing iw
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
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
Weirdly works fine for me when doing CamelCaseMotion_w
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')
.