Docs on the 'fileformat' setting are here, and the vim wiki has a comprehensive page on line ending conversions. Alternately, if you move files back and forth a lot, you might not want to convert them ...