New lines in VIM

Published: Wednesday, Dec 26, 2007 Last modified: Monday, Nov 23, 2020

A newline in Vim is \r. Does that make any sense?? Replace funny line endings with a newline. Remember to CTRL+v, CTRL+m to get a ^M.

:%s/^M/\r/g