Lets say the cursor is at line N and we yank it with yy and we want to paste to 20 lines below the cursor is. Is it possible to do so without moving the cursor down like 20j, p, 20k? Tried 20p but it just pasted 20 duplicate lines. I can't find a solution after some googling, and I can't be the only one that need this.
What I want to do is yank (yy) the current line, paste to 20 lines below, go down one line (j), yank (yy) the current line, paste to 33 lines below, go down one line (j), yank (yy) the current line, paste to 41 lines below, go down one line (j), rinse and repeat
20
you have to type anyway, andp
too, so you are just fighting with one single keystroke?20jp
is fine, isn't it? if you want to go back to the line you yanked, just press``
– Kent20<someKey>
then vim does paste without cursor moving? – Kent