vi deal with special characters - dylanwan/dylanwan.github.io GitHub Wiki

To view the special character, run this command:

:set list

To replace the carriage return, with other character, or remove them, use this:

:%s/\r//g