Loginskip to content

Archive for January 4th, 2007

ViM 7 Tip: Getting rid of ^M

Thursday, January 4th, 2007

It’s been over 15 months since I moved to Mac (Unix-based) OS. Not too often but I still have to modify code that I wrote during my Windows days. The most common problem opening a DOS-formatted text file (PHP file in this case) is getting a ^M at the end of every line. Which looks something like this:

(more…)