Step 3 of 7

6. Copying And Pasting

Yanking in visual mode

You can precisely specify the text you want to yank by entering visual mode, highlighting the region you want to yank, then hitting y. You can then use p to put it like normal.

Work through the checklist below.

  1. Start a highlight in visual mode Put the cursor where you want the highlight to start, then press v.
  2. Yank the selection Extend the highlight with any motions you like — a word, a sentence, whatever takes your fancy. The highlight will vanish the moment you press y.
  3. Put it at the bottom of the file Move to the PUT YOUR SELECTION HERE line (G gets you there) and press p.
Start a highlight in visual mode Put the cursor where you want the highlight to start, then press v.

Next: Yank the selection

Loading editor…