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).
Obviously, Vim d
Try this:
:set fileformat=unix
Can't really verify it though, since I don't have that kind of files handy.