Mission 47 / 52• Visual Mode

Intro to Visual Mode

Sometimes you want to see what you are operating on before executing an action. That's where **visual mode** comes in.

Pressing `v` enters character-wise visual mode. You can expand the selection using any movement key (`w`, `e`, `l`, `j`, etc.).

Visual mode basics

  • venter character-wise visual mode
  • esccancel visual mode and return to normal mode
1
const message = "Select this phrase and operate on it";
2
const value = 12345;

Move onto `Select`, press `v`, and press `e` a couple of times. Watch the highlight expand! Press `esc` to cancel.

Now it's your turn!

  1. Navigate to each green target across the code snippet.
  2. Use the motions and techniques learned in this lesson to land accurately on each target.
  3. See how fast you can complete 10 targets.
0/10
1
const message = "Select this phrase and operate on it";
2
const value = 12345;
NORMAL
00:00