Skip to content

Instantly share code, notes, and snippets.

@wtowns
Created May 31, 2011 21:17
Show Gist options
  • Save wtowns/1001307 to your computer and use it in GitHub Desktop.
Save wtowns/1001307 to your computer and use it in GitHub Desktop.
(vim) Convert from dos/unix to dos
To convert the current file from any mixture of CRLF/LF-only line endings, so all lines end with CRLF only:
:update Save any changes.
:e ++ff=dos Edit file again, using dos file format ('fileformats' is ignored).[A 1]
:w Write buffer using dos (CRLF) line endings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment