Thomas Michael Engelke wrote: > Hello Tony, and thanks for your extensive answer. Unfortunately, this > is what I can report. To make things easier, I'll attach the file I am > talking about to this message so that you can either check for > yourselves and/or see that I'm telling the truth. > > What is the current state: Of course, there's one line without 0x13 > 0x10 at the end, and that is the last line. As I checked using your > regex (I'm always forgetting the :word:-syntax is available as well, > which makes it difficult as I can never remember how to search for a > hex char), I found one single line except the last one without 0x13 > 0x10 at the end. I removed the line in joining it with the line above > (multi line command) and saved the file. I closed it, closed vim and > reopened the file again. The problem persists. Now the only line your > regex finds is the last one. "set fileformats" still evaluates to > "dos,unix". "set fileformat" after loading the file evaluates to > "unix". Setting it to "dos" via "set fileformat=dos" does not help the > issue.
It doesn't matter whether it's the very last line or not: if a single line (even at the end) ends in \n without \r, it is unix-format (note that if it the final line had not ended at all, it would have been dos). -- Micah J. Cowan Programmer, musician, typesetting enthusiast, gamer... http://micah.cowan.name/
signature.asc
Description: OpenPGP digital signature