Friday, December 05, 2008

Fix mac line-endings in VIM

If you've accidentally saved a CSV file with Mac (CR-only) line-endings, you can open the file on the mac in Vim and enter the following bit of magic:

:e ++ff=mac


Enjoy.

No comments: