Re:Vim Clutch – A hardware pedal for improved text editing (...
by nicolashahn on Sunday March 11, 2018 @10:38PM
(#16565888)
Question for anyone who knows: is there a vim command or plugin to transform the word the cursor is under to upper/lowercase (or camelCase, kebab-case, snake_case, while we're at it)?
[ Parent
| on HN ]
Re:Vim Clutch – A hardware pedal for improved text editing (...
by u801e on Sunday March 11, 2018 @11:40PM
(#16566063)
g~w will swith lowercase letters to uppercase ones and vice versa. gUw will change all letters in the word to uppercase. guw will change all uppercase letters in the word to lower case. See :help case for more details.
There are probably plugins to change words to camelCase, snake_case, etc, but I'm not aware of any built-in command to do that (other than manually editing it).