In expression :s/foo/bar\n/g
When replacing \n
inserts a null byte, according to the docs I have to use \r
. Since I insert newlines more frequently than null bytes, is there a way to change this mapping?
So I want :s/foo/bar\n/g
to insert a newline, not nullbyte.