New lines in VIM

Published: Wednesday, Dec 26, 2007 Last modified: Wednesday, Oct 2, 2024

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