Reputation: 1482
I'm currently using yyp
or yy(n)p
to duplicate lines. Can I do it without yanking lines?
Upvotes: 3
Views: 3546
Reputation: 155
You can delete the line with dd
and then paste (put) it with p
multiple times. E.g. 2p
to duplicate.
Upvotes: 0
Reputation: 996
View Duplicate a whole line in Vim
Explicitly the not so upvoted answers (like :t.
). - but why not yyp
?
Upvotes: 4