How can I do a search and replace for something like this? the camelCase
functions all start with a lowercase character.
Best regards,
Frans
This makes it easy, see below.
> Best regards,
>
> Frans
Try this substitute
:%s/\l\zs\u/_\l&/gc
search for a lower case followed by an upper case char
let the match start at the upper case char
replace with "_" followed by the matched char turned into lower case
:h sub-replace-special
:h :s_flags
--
Andy