When I am editing source files using Vim and other editors, sometimes I get these ^M characters at the end of each line. I think that it has something to do with editing a file on Windows and then on Linux. How can I remove all of these automatically?

Edit
Report