: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
:setlocal ff=Unix :w
Converts and saves current buffer as Unix standard line endings. n FTW!
brew install dos2unix
Then use dos2unix to easily swap line endings into Unix format dos2unix \*.rb