VimDojo
Lessons
Challenges
Editor Demo
Login
Get Started
← Back to Challenges
advanced
Time limit: 1:30
Conditional Replace
Use interactive substitution (gc flag) to selectively replace occurrences.
Commands
:%s//gc
Conditional Replace
Use interactive substitution (gc flag) to selectively replace occurrences.
Time
0:00
/ 1:30
Editor
0 keys
1
T
he cat sat on the mat.
2
The cat ate the rat.
3
The cat napped on the mat.
-- NORMAL --
conditional-replace
Target
1
The dog sat on the mat.
2
The cat ate the rat.
3
The dog napped on the mat.
-- NORMAL --
conditional-replace
Hints (0/2)
Reset
⚠ Guest mode —
Sign in
to save your progress and score