I have a file with fileformat=dos
where vim shows all newline characters as ^M
. However, when I try to fix this by replacing all occurrences of ^M
with \r
using
:%s/<Ctrl-V><Ctrl-M>/\r/g
then the command is not performed globally but stops after the first ^M
character is replaced?