Mission 48 / 52• Visual Mode
Visual Mode Operators
Once text is visually highlighted, the standard operators apply directly to your selection.
`d` deletes the selection, `c` changes it (enters insert mode), and `y` yanks (copies) it.
Operators on visual selection
- ddelete the visually highlighted text
- cchange highlighted text (delete and enter insert mode)
- yyank (copy) the highlighted text to clipboard
Press Enter to start
1const items = ["keep", "DELETE_ME", "keep_too"];Highlight `"DELETE_ME"` with `v` and word motions, then press `d` to excise it.
Now it's your turn!
0 / 4 tasks complete0.0s / 19s par0 / 25 par
Practice this lesson's commands. Each task checks your technique and the result, not just your cursor position. Take your time.
Task 1: Select old with visual mode and replace with new using c. Return to normal mode.
Expected result
keep new keep
Show hint
Press v, e, c, type new, then Escape.
Press Enter to start
1keep old keepjkscroll•ggGtop/bottom•Tabnext example•Enterstart•qstop•Ctrl+kCtrl+jprev/next