VimDojo
Lessons
Challenges
Editor Demo
Login
Get Started
← Back to Challenges
advanced
Time limit: 1:00
Regex Rename Variable
Rename a variable using word boundaries to avoid partial matches.
Commands
:%s
Regex Rename Variable
Rename a variable using word boundaries to avoid partial matches.
Time
0:00
/ 1:00
Editor
0 keys
1
l
et count = 0;
2
count += 1;
3
resetCount();
4
console.log(count);
5
let countMax = 100;
-- NORMAL --
regex-rename
Target
1
let total = 0;
2
total += 1;
3
resetCount();
4
console.log(total);
5
let countMax = 100;
-- NORMAL --
regex-rename
Hints (0/2)
Reset
⚠ Guest mode —
Sign in
to save your progress and score