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

Monday, 21st December 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

Share this on:

Download PDFDownload PDF

Tags: , ,

Leave a Reply

CommentLuv badge