Archive for December 21st, 2009

Convert all text in a file from upper to lower case with VIM

Monday, December 21st, 2009

I’m playing a bit with some old crappy html files this days,
I’m trying to make them w3c compliant. One of the files was
filled with HTML tags in upper case, therefore I needed a quick way
to convert them to lower case.
Here is how I did it:
:%s/[A-Z]/L&/g