Re: Can I use conceal to hide ctrl-m in end of line?

2012-06-13 Thread ping
thanks Tony. however I think I need a way to just not display instead of modifying the file -- it might need to be shared with other people working in other OS.. thanks anyway. FYI attached is a file of mine with ^M displayed on beginningending of each line. a :%/\r//g will clear all ^M and

Re: Can I use conceal to hide ctrl-m in end of line?

2012-06-13 Thread Christian Brabandt
On Wed, June 13, 2012 16:25, ping wrote: (Hi ping, please don't top poste) thanks Tony. however I think I need a way to just not display instead of modifying the file -- it might need to be shared with other people working in other OS.. thanks anyway. FYI attached is a file of mine with ^M

Re: Can I use conceal to hide ctrl-m in end of line?

2012-06-13 Thread Tony Mechelynck
On 13/06/12 16:25, ping wrote: thanks Tony. however I think I need a way to just not display instead of modifying the file -- it might need to be shared with other people working in other OS.. thanks anyway. FYI attached is a file of mine with ^M displayed on beginningending of each line. a

Re: Can I use conceal to hide ctrl-m in end of line?

2012-06-13 Thread Tony Mechelynck
On 13/06/12 17:01, Christian Brabandt wrote: On Wed, June 13, 2012 16:25, ping wrote: (Hi ping, please don't top poste) thanks Tony. however I think I need a way to just not display instead of modifying the file -- it might need to be shared with other people working in other OS.. thanks

Re: Can I use conceal to hide ctrl-m in end of line?

2012-06-13 Thread Christian Brabandt
On Wed, June 13, 2012 17:10, Tony Mechelynck wrote: On 13/06/12 17:01, Christian Brabandt wrote: On Wed, June 13, 2012 16:25, ping wrote: (Hi ping, please don't top poste) thanks Tony. however I think I need a way to just not display instead of modifying the file -- it might need to be

Re: Can I use conceal to hide ctrl-m in end of line?

2012-06-13 Thread ping
hi Christan: :hi Normal Normal xxx cleared Press ENTER or type command to continue looks I only get this. how to proceed then? sorry I don't understand much about highlight syntax stuff in vim... regards ping On 06/13/2012 11:01 AM, Christian Brabandt wrote: On Wed, June 13, 2012

Re: Can I use conceal to hide ctrl-m in end of line?

2012-06-13 Thread Christian Brabandt
Hi ping! On Mi, 13 Jun 2012, ping wrote: hi Christan: :hi Normal Normal xxx cleared Press ENTER or type command to continue looks I only get this. how to proceed then? sorry I don't understand much about highlight syntax stuff in vim... Try setting explicitly a colorscheme

Can I use conceal to hide ctrl-m in end of line?

2012-06-12 Thread skeept
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

Re: Can I use conceal to hide ctrl-m in end of line?

2012-06-12 Thread Jostein Berntsen
On 12.06.12,08:38, 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

Re: Can I use conceal to hide ctrl-m in end of line?

2012-06-12 Thread Florian Rehnisch
On Tue, Jun 12, 2012 at 08:38:34AM -0700, skeept wrote: 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.

Re: Can I use conceal to hide ctrl-m in end of line?

2012-06-12 Thread Ben Fritz
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

Re: Can I use conceal to hide ctrl-m in end of line?

2012-06-12 Thread skeept
On Tuesday, June 12, 2012 12:22:44 PM UTC-5, Ben Fritz wrote: 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

Re: Can I use conceal to hide ctrl-m in end of line?

2012-06-12 Thread Tony Mechelynck
On 12/06/12 20:01, skeept wrote: [...] Thanks, the suggestion in the link :e ++ff=dos seems to do the trick. It does not overwrite the file and the ctrl-m are gone. I don't understand well what it does, but it does the job, Thank you again. :e ++ff=dos reads the file, accepting either CR+LF

Re: Can I use conceal to hide ctrl-m in end of line?

2012-06-12 Thread Tony Mechelynck
On 13/06/12 00:30, ping wrote: I happen to have a file displaying ^M, but looks this works only to hide the ^M in the end of the line , not the beginning of it. My file have both...see following screenshot: after :e ++ff=dos the trailing ^M disappear, but the preceding one is still there,