Created
May 31, 2011 21:17
-
-
Save wtowns/1001307 to your computer and use it in GitHub Desktop.
(vim) Convert from dos/unix to dos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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