Select when a shape needs inspection
The technique
v starts the selection, e stretches it over the word and l adds the space. You see exactly what d will delete.
Keys in this lesson
- v
- Select characters. Move to grow the selection.
- V
- Select whole lines.
Before this lesson: Operators and movement.
More about this lesson
Use v and V positively, adjust a region and choose what to do with it.
v starts characterwise selection; V starts whole-line selection. Move to adjust the highlighted region, then d deletes, y copies or c changes it. Esc cancels selection. Adjust the selection before committing it. Native Vim also offers gv to reselect; this browser exercise does not rely on that command. A text object can be clearer for a known boundary, but visible selection is useful for irregular regions.
Example
From the start of a short phrase, v then e highlights one word. Extend with another e if two words belong to the edit. V then j selects two entire lines.
Use Reset to try again.