Hey guys, was wondering if any of you guys have a better way off doing this.
Say I have a file which have 100 lines of code. I turned on relative numbering. I’m on line 20 for example. I saw something that is 10 lines up from the current line I am in. I want to yank 2 lines from that point (10 lines above), to the current line I am in. Currently I’m doing this:-
Which is move 10 lines up (10k), yank 2 lines (2yy), move back 10 line (10j) and paste §
Is there a way i can do this, which is yanking from 10 lines above without moving to it in the first place?