megacolorboy

Back

Published on March 12th, 2021

VIM

Convert string from snake case to camel case

Thought of sharing a simple regular expression that I use on VIM to convert snake_case letters to camelCase letters (see what I did there) 😜Here's the pattern for you to use:Hope you found this tip useful!

1 minute read

Thought of sharing a simple regular expression that I use on VIM to convert snake_case letters to camelCase letters (see what I did there) 😜

Here's the pattern for you to use:


:s/ \([a-zA-Z]\)/\u\1/g

Hope you found this tip useful!