Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Vim solution: type in all lower case, then select what you just typed and press ~.

Admittedly it doesn't help for non-Vim applications, but I don't find myself typing all caps outside Vim very often. It's usually to type something like FOO_BAR, but then you can just type FO<Ctrl-N> and that usually works.



~ is for one character. If you have a word you want in caps, do gUw. For lowercase, it's guw.


~ works under visual selection.


Or for a string, gUi"

"go Uppercase inside double quotes"




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: