Skip to content

Instantly share code, notes, and snippets.

@JAffleck
Created November 22, 2021 21:17
Show Gist options
  • Save JAffleck/b443db7aeac72574d624f5a58c9c60ae to your computer and use it in GitHub Desktop.
Save JAffleck/b443db7aeac72574d624f5a58c9c60ae to your computer and use it in GitHub Desktop.
Vim Title Case something that was Embiggend
"Match Groups (1st letter), (rest of letter characters (as many in a row as possible))
"\u = Uppercase next character of 1st match
"\L = Lowercase rest of word
%s/\v<(\w)(\w{1,})/\u\1\L\2/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment