On 21/10/08 14:52, 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.
>
> Cheers,
>
> Ben.

Upon past experience.

I have noticed that ++enc works regardless of 'fileencodings' but that 
++ff does not always work if 'fileformats' is nonempty. I haven't 
investigated all possible combinations, but I believe that the current 
'ffs' value (my usual setting is "unix,dos") and whether running on 
Linux or Windows "might" make a difference.

Also, I'm talking of "broken" DOS files, i.e., files with a mixture of 
CR+LF and LF-only line endings. These are normally detected as "Unix" 
fileformat, and I have noticed that ++ff=dos is not always enough to set 
'fileformat' (singular) to "dos" on these files (and auto-discard 
CR-before-LF when reading in) if 'fileformats' (plural) includes "unix".


Best regards,
Tony.
-- 
hundred-and-one symptoms of being an internet addict:
216. Your pet rock leaves home.

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

Reply via email to