Step 5 of 5

What can I do with a selection?

What can I do with a selection?

So far we’ve grown, shrunk, and flipped selections. Now let’s do something with them. A selection made in select mode is no different from any other selection, so every action you learned in the last lesson works on it:

  • d to delete
  • c to change — i.e. deleting your entire selection, then dropping you into insert mode
  • y to yank (copy) — the next lesson will work through yank/paste
  • > to indent the selected lines
  • < to unindent them

d, y, > and < leave you in normal mode when they’re done, so you’re ready for the next selection straight away. c is the exception: it drops you into insert mode, and you hit Escape when you’ve typed the replacement.

Work through the checklist below.

  1. Select some words, then delete them with d Move down to the first practice line, press v, extend over a few words with w, then press d.
  2. Change a selection with c Move down to the second practice line, select a couple of words with v and w, then press c.
  3. Drop back to normal mode Type a replacement for the words you changed, then hit Escape to leave insert mode.
  4. Indent some lines with > Move down to the last paragraph, select it with x, v, j, j, then press >.
Select some words, then delete them with d Move down to the first practice line, press v, extend over a few words with w, then press d.

Next: Change a selection with c

Loading editor…