:set ff=dos :set ff=unix :set ff=mac
Convert DOS line endings to Linux line endings in vim - Stack Overflow