Relative copy and paste in vim:
:t is an alias for
:co[py] and can be used in command mode like so
This will copy 12 lines above the cursor and paste on the current line it also works with different destinations (
:-12t+19<cr>) and ranges
:3t9 - copy line 3 to line 9. Reads 3 to 9.
:3t. - copy line 3 to the current line.