On Fri, May 05, 2006 at 10:23:40AM -0700, David Frey wrote:
> 
> I am running gvim 6.3 under windows 2000.  When I open a certain file, I
> see ^M at the end of the lines.
> 
> When I do :set fileformat it shows
>  fileformat=unix
> 
> If I do :set fileformat=dos, the ^M characters are still visible.
> 
> What I want is to be able to edit the file without having to see all the
> ^M characters.  I don't want to create a noisy diff by modifying every
> line in the file, so simply removing the ^M characters is not an option.

If the file is truly a dos file and doesn't have mixed up line-endings

  :e ++ff=dos

should work.  Although, if you haven't changed the default value of
'fileformats', it would seem like the file has inconsistent line-endings
somewhere.

James
-- 
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[EMAIL PROTECTED]>

Attachment: signature.asc
Description: Digital signature

Reply via email to