I use Vim 7.3 under Windows 7 and have experienced a problem. Symbols
^M are not disappearing despite any my efforts,
:e ++ff=dos does not help.
^M usually appear when the file is inconsistent with regards to the line terminators used. Try the following:
In real life, programs that have been written with a single type of line-terminator in mind may produce such inconsistencies. While these inconsistencies seem innocent, they may cause you problems with other programs. E.g. subversion does not allow file with inconsistent line terminators to be added to a repository. Other programs may just fail silently.
To make ^M dissapear just make a global replacement:
Then write back the file in the desired format:
The character that vim displays as ^M is
If you open a text file created on a Windows computer on a Linux box, you may see trailing