I\'m using gVim on Windows. My code shows ^M characters at the end of lines. I used :set ff=dos to no avail. The ^M characters remain
^M
:set ff=dos
You can ignore these chars!
put this into your vimrc
match Ignore /\r$/