19 Aug 2012

Swap out BAD line endings for Unix standard

:setlocal ff=Unix :w

Converts and saves current buffer as Unix standard line endings. n FTW!

Update

brew install dos2unix Then use dos2unix to easily swap line endings into Unix format dos2unix \*.rb