Last Updated: February 25, 2016
·
1.326K
· katylava

Use vim to replace invisible ^M characters

:%s/<Ctrl+v><Ctrl+m>/<Ctrl+v><Enter>/g

which looks like the following when you type it, but it does work
:%s/^M/^M/g