On 21/10/08 21:15, Matt Wozniski wrote:
> 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
I think it _is_ documented but I don't remember where (help about that
behaviour is scattered about several help files). Maybe starting at the
following help tags, then following hotlinks, might help track it down:
:help 'fileformat'
:help 'fileformats'
:help ++opt
Best regards,
Tony.
--
"Every time I think I know where it's at, they move it."
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---