Let's say I record a macro n
that generates the following text:
1
2
When I ask for the content with "np
it outputs:
i1^M2^M^[
So I append in .vimrc
file:
let @n = 'i1^M2^M^['
if I save .vimrc
and then I call it with @n
in a new file, it outputs the string above literally.....
How should I represent the newline key in configuration file?
^
thenM
, or<C-v><C-m>
? – D. Ben Knoble♦ Feb 2 '20 at 1:53"np
to paste the escaped characters^M
and^[
into the vim script? – Arnie97 Feb 2 '20 at 3:31^
thenM
, the second way doest not work either. – sebelk Feb 2 '20 at 12:05