I recently uploaded some new software for a domain I utilize – and of course the dreaded newline replacements (^M) are all over the place. To fix this – I type one simple line:

For Mac Users in VIM or VI:
%s/\r//g

For windows users in VIM or VI:
%s/[cntrl+m]//g

This will replace them throughout the file. Happy Coding!

About Asia