I find it very strange that I can't find this question anywhere...
I made a mapping
nnoremap <leader>C /\u<CR> to go to the next capital letter. I thought it would be useful to edit camelCase stuff, so if I had something like
oneTwoThree and I wanted to change it to
oneFourThree I could just put cursor on the
T and do
c<leader>C. However this does not work. Is there an easy way to make this work?
Edit: I accidentally found out that pressing
<leader>Cc<leader> does what I want, I don't understand why.