Tired of seeing ^M characters in your config files? Try this nice little VI trick.

Open the file and type:

 :%s/^M//g

To enter the ^M, press the control key then keys V and M