I've enabled the relativenumbers in Vim. I would like to automate the following operation.
ma(number)(j|k)yy`a(p|P)
that is to say:
- mark the curr position in 'a'
- move up or down by 'number' lines
- yank current line
- jump back to position 'a'
- put line up or down
I'm looking for an easier way to perform the same. Is there one?
Thanks.
:move
command.