vi copy and paste lines

yy

will yank the current line without deleting it

dd

will delete the current line

p

will ‘put’ a line grabbed by either of the previous methods

OR just YP or Yp or yyp

Copy and paste 10 lines:

y10yp

Leave a Reply

Your email address will not be published. Required fields are marked *