On Tue, Oct 21, 2008 at 8:52 AM, Ben Schmidt wrote:
>
>> You may also force-read with one specific type of line endings, but it
>> will only work if 'fileformats' (plural) is empty: see ":help ++opt".
>
> Upon what do you base the statement that it will only work if ffs is
> empty, Tony? I can't find any reference to such a restriction, nor have
> I experienced problems without emptying it, and a quick test shows that
> if I have ffs=unix then doing ++ff=dos does work as I expect it to for
> reading DOS files.

Tony's right; try it with a broken DOS-format file - line 1 ends \r\n,
line 2 \n.
echo -n "a\r\nb\n" >tmp/testfile

However, I also can't find any reference to this behavior in the help,
and it definitely strikes me as a bug - I can't see why you'd ever
want autodetection to override a manual decision from the user.  One
more question for Bram when he gets back, I guess.

~Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to