:%s/\r/\r/g - zastąpienie ^M znakiem nowej linii
- 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. |