vim – switch all to lowercase


You could use the special \L combonation to indicate that the following character must be made lower case:

:%s/[A-Z]/\L&/g

Here you match any character in [A-Z]. The replacement string is then \L followed by &, which is short for what was matched in the left  hand side.