Braindump
Vim Line Endings
Vim Line Endings
To set the line ending (DOS/Windows line ending = CRLF; Unix line ending = LF; Mac line ending = CR) in vim use this sequence of commands:
:set fileformat=unix<CR> :w<CR>
(Found at http://www.halfcooked.com/mt/archives/000070.html, on 2009-07-08)