Why is \r a newline for Vim?

From http://vim.wikia.com/wiki/Search_and_replace :

When Searching

\n is newline, \r is CR (carriage return = Ctrl-M = ^M)

When Replacing

\r is newline, \n is a null byte (0x00).

Leave a Comment