Convert every matching regex (or line) to lowercase or uppercase using vims gsub command. In normal mode this will convert the entire document to lowercase (ie downcase all capitals):
:%s/[A-Z]/\L&/g
Likewise for to upcase:
:%s/[a-z]/\U&/g
Convert every matching regex (or line) to lowercase or uppercase using vims gsub command. In normal mode this will convert the entire document to lowercase (ie downcase all capitals):
:%s/[A-Z]/\L&/g
Likewise for to upcase:
:%s/[a-z]/\U&/g
Dear spammers, you may enjoy posting on auto blog instead
Switch to mobile version
from the first line,
“VG”
to select all lines,
“~” to invert the case if the whole file was in uppercase
or
“veu” to downcase (“veU” to uppercase)
Julien’s method works great and it’s easier on the fingers