New lines in VIM
Published: Wednesday, Dec 26, 2007 Last modified: Thursday, Nov 14, 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
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