I want a function to change underline word to little camel for one line.
When I use <shift+v>:s/_\(\w\)/\u\1/g
, it work fine.
And then I want to make a function to simplify it, <shift+v>:ToLittleCamel
" underline to little camel
:command ToLittleCamel call ToLittleCamel()
function! ToLittleCamel()
s/_\(\w\)/\u\1/g
endfunction
but it doesn't work.