I've the following text copied to the "0
register
test
test
If I want to copy the content of the
"0
register to the"a
register I do:let @a=@0
Then, if I paste the content of
"a
register I obtaintest test
Now, to paste the content of the
"0
register to the"a
register I do:let @a="
and then
<C-r>0
, and the result is this:let @a="test^Mtest^M"
Then I paste the content of
"a
register ("ap
) and I obtaintest^Mtest^M
Why are the results not equal?
Specifically, why the newline characters are written literally and not interpreted in the second case?