by runn1ng · 13y ago · 0 comments
What if I want to type, let's say, some longer name of a constant that are usually IN_ALL_CAPS_AND_WRITTEN_LIKE_THIS?
I don't want to hold shift on all these letters. I LIKE CAPS LOCK AND I LIKE IT A LOT.
nnoremap <c-u> viwU
To use it just type the word in lowercase, hover your cursor over any letter in the word, and press Ctrl-U to highlight it.