Braindump

Vim Line Endings

Braindump.VimLineEndings History

Hide minor edits - Show changes to output

January 12, 2010, at 03:33 PM by 192.33.126.162 -
Added lines 1-10:
!! 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)