The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Copy and Paste inside of Vim

Copy and Paste inside of Vim

0:55
Sometimes you just need to copy some code from one file to another. Vim allows you to do this, in a quick and efficient way.
Watch this lesson now
Avatar
egghead.io

Sometimes you just need to copy some code from one file to another. Vim allows you to do this, in a quick and efficient way.

Avatar
Chris Kobrzak

Just to add my penny, if you're on OS X and would like to be able to copy something to the system clipboard, select a piece of text in Vim's visual mode and then go :w ! pbcopy.

If you switch to any other program on the Mac, it can now be pasted with Cmd+v.

In reply to egghead.io
HEY, QUICK QUESTION!
Joel's Head
Why are we asking?