I tried the conceal char feature for this situation as described by
James Vega and Christian Brabandt. It hides the ^M and the file is not
modified. But there's no indication that the file has mixed EOL's. But
with conceal and using the trick in Ben's 2nd autocmd, you should be
able to report that the file has mixed EOL (and how many), not see the
^M and not modify existing line endings.
-ernie
On 9/20/2011 9:09 PM, Ron Aaron wrote:
On Sep 20, 5:43 pm, Ben Fritz<[email protected]> wrote:
It doesn't exactly answer your question (since writing the file will
change any LF-only lines), but at least you can automatically reload
in DOS format if you so choose:
Thanks, Ben. That might help a bit in the environment I'm in, I'll
have to see if I can make it work better. Still modifies the file,
which I don't want (though I can 'set nomod' so I don't accidentally
write the file unless I intend to).
--
You received this message from the "vim_dev" 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