Moved a text file between tow different operating systems? Found the annoying ^M special character? Here are ways to remove ^M character.
To remove ^M within a line (without creating a a line break)
:%s/^V^M//g
To remove ^M within a line (creating a a line break)
:%s/^V^M/^V^M/g