On May 18, 4:43 pm, Jean-Rene David <[email protected]> wrote:
> This usually happens when 'encoding' or 'fileencoding' don't match the
> content of the file. What are they set to when you edit that file?
>
> > Also I set up a shortcut (Ctrl+L) to get rid of all the ^M file
> > endings, but it would be nice if they showed up correctly as well.
>
> ^M's show up only when the file is malformed (i.e. it contains both unix
> end-of-lines and DOS end-of-lines) so vim can't decide which format to
> choose for the file. If the file is homogenous with respect to line
> endings, then you won't see them.
>

Or, they can show up when 'fileformats' does not contain "dos".
See :help 'fileformats', :help 'fileformat', and 
http://vim.wikia.com/wiki/File_format

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to