Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there a way to change case to low or high whole block in visual mode vim?

Tags:

vim

Want to change case to lower in whole block in visual mode. If i want to change case of a single character, i can press ~, but what i need to use in visual mode for changing in selected area into low or high case ?

like image 797
RusAlex Avatar asked Dec 14 '10 18:12

RusAlex


1 Answers

  • The ~ also works on visual blocks and 'inverts' the casing (lowercase becomes uppercase, uppercase becomes lowercase)
  • u makes the selection lower case (regardless on the original casing)
  • U makes the selection upper case (regardless on the original casing)
like image 126
icecrime Avatar answered Oct 05 '22 08:10

icecrime