If I have following lines:
1
2
3
I make a macro to insert a new line below current line and type 'x': my macro is:
ox^[j
now I run this macro to the above three line by visual select the lines and type command:
:'<,'>normal @q
it will give me the result:
1
x
x
x
2
3
instead of the expected result:
1
x
2
x
3
x
How can I achieve the expected result?
'<,'>s/$/\rx
(substitute each end of line by a new line\r
and anx
)