bkad / CamelCaseMotion

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

what is quickest way to replace , (comma) with some other character #14

Closed rockneverdies55 closed 10 years ago

rockneverdies55 commented 10 years ago

I like the idea of having ,w - ,b -,e mappings for camel case motion but I use , as my Leader key so it might interfere with my other mappings. I would like to change the , (comma) in camel case motion mappings but keep the letters as they are.

Is that possible, if it is how can I do that? (let's I would like to use < character instead of , so i<w should be equal to e,w)

bkad commented 10 years ago
map <silent> i<w <Plug>CamelCaseMotion_w
map <silent> i<b <Plug>CamelCaseMotion_b
map <silent> i<e <Plug>CamelCaseMotion_e
rockneverdies55 commented 10 years ago

Thank you for the quick answer @bkad .

With these mappings, do you think a<w a<b or a<e will work too though?

bkad commented 10 years ago

I see no reason why that wouldn't work.

rockneverdies55 commented 10 years ago

Great.. thank you! :+1: