Dreamweaver file in vim
I got sent a PHP-file that was created in Dreamweaver on a PC. The line-breaks have a "^M" at the end, which vim does not understand and thus the entire file is one long line. I ran into this problem before, but cannot remeber for the life of me how to fix it. I guess I could replace all those literal carachters with a hard-return, but then all the formatting and indents are gone.
How do I convert this file to something vim can read?
|