Last Updated: February 25, 2016
·
1.351K
· 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