How to replace new line characters \r\n with a newline in VIMTagged vim, newline, search, replace Languages To get the ^M character, type CTRL+V and press enter: :%s/\\r\\n/^M/g Edit Delete