Thursday, March 23, 2017

Re: Edit a Mac file with 0x13 CR newlines on Windows?

On Friday, March 24, 2017 at 2:34:05 PM UTC+11, Paul Watson wrote:
> Is it possible on Windows to edit a old-style, pre-OS/X file from a Mac that uses 0x0D (CR) as the newline? If so, how?
>
> Does this have something to do with 'set ffs='?

See
http://vim.wikia.com/wiki/File_format

If the file is open in Vim, entering the following reloads it using CR-only line endings.

:e ++ff=mac

John

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment