Created
November 22, 2021 21:17
-
-
Save JAffleck/b443db7aeac72574d624f5a58c9c60ae to your computer and use it in GitHub Desktop.
Vim Title Case something that was Embiggend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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