Instead of deleting the word and retyping all the letters once again in the opposite case, I'd like to find some smart way in Vim to solve the problem.
Move to the Font group on the HOME tab and click on the Change Case icon. Pick one of 5 case options from the drop-down list. Note: You can also select your text and press Shift + F3 until the style you want is applied. Using the keyboard shortcut you can choose only upper, lower or sentence case.
While typing, you can modify the case of any text by pressing either the Caps Lock or Shift .
It's
g~iw
with the cursor on the word.
Key:
g
flag (I couldn't find a good reference for this...)~
toggle case; alternatively use U
for to-upper or u
for to-loweriw
selects the Inner Word, i.e. the word that the cursor is on; ip
selects the Inner ParagraphSee Michael Jakl's Vim Introduction and Tutorial - concise and has some nice graphical explanations.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With