VIM Course

Copy/Paste

Go back

This is a list of the commands you will use to copy and paste something.


Copy

  • yy: copy the current line
  • :yx: copy x lines from the cursor line
  • :n,my: copy the lines from n (>=1) to m

Paste

  • p: paste copy after the cursor
  • P: paste copy before the cursor