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
Running Vim 7.3 on Windows 7. I used the following command:
:%s/^M/\r/g
To create the ^M I typed in CTRL+Q then CTRL+M.