Is there a way to copy a few times a given block from command-line mode, e.g. with the :t
command?
For example, how to copy the two lines (block) above the cursor -2,-1
to the current position .
, 3 times with one command instead of three:
: -2,-1t.
: -2,-1t.
: -2,-1t.
@:
and further repeats can be done with@@
– Aditya Varma Aug 31 '17 at 8:25let @a = '-2,-1t.' | exe @a @a @a
– LEI Sep 2 '17 at 13:51