I work with gVim on Windows, and when I open files edited by others, I see ^ M instead of new lines. I tried to use %s/^M/\n/gto replace all instances of ^ M with a new line, but I keep getting the error: pattern not found: ^ M. I also tried %s/^M/\r/g, but get the same error.
There are several more instances of the ^ M file in the file, why can't Vim identify them?
source
share