Martin Krischik wrote:
Am 26.12.2006, 21:13 Uhr, schrieb A.J.Mechelynck
<[EMAIL PROTECTED]>:
So here are the cases where you will see lines ending in ^M :
- File has mixed fileformat, with some lines ending in <CR><LF> and
others ending in <LF> only.
- All lines end in <CR><LF> but some have a second <CR> just before that.
This is a problem I often face as well when edition 3rd party files from
more forgiving editors. As such I often wich for a function to fix the
fileformat after loading.
But I guess that could be solved with a plugin.
Martin
--Martin Krischik
It can also be fixed by a substitute:
:1,$s/\r*$//
Best regards,
Tony.