How to edit a file in Vim with all lines ending in ^M except the last line ending in ^M^J <p>I have a bunch of files that I need to look at. All lines in these files end in ^M (\x0D) except the very last line that ends in ^M^J (\x0D\x0A).</p> <p>Obviously, Vim determines the filetype to be DOS with the effect that the file's entire content is displayed on one single line like so:</p> <pre><code>some text foo^Mmore text and^Ma few control-m^Ms and more and more </code></pre> <p>Since I don't want to change the files' content: is there a setting in Vim that allows to look at these files with the new lines as I'd expect them to be?</p>