On Tuesday, June 12, 2012 10:38:34 AM UTC-5, skeept wrote:
> Hi,
> 
> I am working with someones elses file, some of them are readonly so I cannot 
> really just read read of the annyoying ^M in the end of the line.
> Some lines have this charather others don't. 
> Even if I do
> set ff=dos they are still changing.
> 
> I was thinking that it should be possible to hide these using the conceal 
> feature, but I am not sure how to do it.
> 
> I tried 
> :syntax keyword ConcealCtrlm ^M conceal cchar=
> :set conceallevel=2
> 
> but nothing happened...
> 

Try this:

http://vim.wikia.com/wiki/Automatically_reload_files_with_mixed_line-endings_in_DOS_fileformat

Unfortunately the SpecialKey highlight which applies to the ^M at the end of 
lines overrides syntax highlighting so you cannot use an Ignore or concealed 
group on them using syntax highlighting.

-- 
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