Question[edit source]

Is it possible to use ^M inside a normal function? I'm using Vim on Windows and I'm writing a function and one of the things I want to do is remove any literal ^M that appear inside the document. Something like this, which obviously doesn't work: normal :%s/\^M//ge^M 64.102.249.9 19:25, February 22, 2017 (UTC)

See ^M for the full story. It has some :%s commands to do what you want. JohnBeckett (talk) 01:33, February 23, 2017 (UTC)
Community content is available under CC-BY-SA unless otherwise noted.