A common process for me is to have a camelCased word that I wish to prepend to. I find the vanilla method a little too cumbersome as I will describe below. What I'm wondering is if there is a better method.
Example
function foo() {
doSomething();
}
In this the doSomething
is in camel case and I want to turn it into shouldDoSomething
.
Things I've tried
Usually I will place the cursor at the beginning of the word and press ~hishould
Esc. However, this requires positioning the cursor correctly and performing a few operations one of which needs to be undone (~ move cursor to the right requiring an extra h).
I have also used tpope's vim-abolish Coercion by placing the cursor on the correct line and then Isomething_
Esccrc. Unfortunatly the result of which is shouldDosomething
not shouldDoSomething
.