On Thu, Apr 30, 2009 at 2:30 AM, pansz wrote:
>
> Tony Mechelynck 写道:
>>
>> IMHO, in Vim 7.2.040 and later, by opening it with
>>
>>       :e ++ff=dos somestuff.txt
>
> Things can be worse than that: I've seen files mixed with \r\r\n and
> \r\n and \n at the end of line. in which case ++ff=dos does not solve
> the problem. since there's extra ^M there.
>
> so I'd always recommend a single command :%s/^M//g

But that would ruin a file that intentionally had ^M in it - like some
ex scripts, for instance.

~Matt

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

Reply via email to