Re: Problem setting 'fileformat'

2017-01-23 Thread Bram Moolenaar
Christian Brabandt wrote: > Hi Gary! > > On So, 22 Jan 2017, Gary Johnson wrote: > > > Some of the log files I collect contain both CR and CR-LF line > > endings. Normally on a Linux system, Vim opens those files as > > 'fileformat' "unix", which puts ^M at the end of lines ending with > > CR-

Re: Problem setting 'fileformat'

2017-01-22 Thread Gary Johnson
On 2017-01-22, Christian Brabandt wrote: > Yeah, readfile() does not expect autocommands to change those values. > > Attached is a patch that fixes it. Wonderful! Thank you so much! Regards, Gary -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply

Re: Problem setting 'fileformat'

2017-01-22 Thread Christian Brabandt
Hi Gary! On So, 22 Jan 2017, Gary Johnson wrote: > Some of the log files I collect contain both CR and CR-LF line > endings. Normally on a Linux system, Vim opens those files as > 'fileformat' "unix", which puts ^M at the end of lines ending with > CR-LF. I would like to hide those ^M by forcin

Problem setting 'fileformat'

2017-01-22 Thread Gary Johnson
Some of the log files I collect contain both CR and CR-LF line endings. Normally on a Linux system, Vim opens those files as 'fileformat' "unix", which puts ^M at the end of lines ending with CR-LF. I would like to hide those ^M by forcing 'fileformat' to "dos" for those files. I think the follo