Given:
This is nearly identical
My answer looks like an o
I am glad you did because
Thank you so much, romain
Desired output, just duplicate the line and add 2 at the end:
This is nearly identical
This is nearly identical 2
My answer looks like an o
My answer looks like an o2
I am glad you did because
I am glad you did because2
Thank you so much, romain
Thank you so much, romain2
I have recorded a macro @q that will start from the first line, duplicate the line (cursor is now at the second line), append 2, and then go to the next line (cursor is now at the third line). The macro works well if I just keep typing @q until the end of the file (never need to move the cursor, cursor movement is handled correctly by the macro).
however if I try to use :'<,'>norm! @q method (seen here), I got this:
This is nearly identical
This is nearly identical 2
This is nearly identical 22
This is nearly identical 222
This is nearly identical 2222
My answer looks like an o
I am glad you did because
Thank you so much, romain