VimDojo
Lessons
Challenges
Editor Demo
Login
Get Started
← Back to Challenges
advanced
Time limit: 2:00
Macro: Reformat Log Lines
Record a macro to reformat log lines from "[TIMESTAMP] LEVEL: message" to "LEVEL | message".
Commands
qa
f
d
c
q
@a
Macro: Reformat Log Lines
Record a macro to reformat log lines from "[TIMESTAMP] LEVEL: message" to "LEVEL | message".
Time
0:00
/ 2:00
Editor
0 keys
1
[
2024-01-15 08:30:00] INFO: Server started
2
[2024-01-15 08:30:01] DEBUG: Loading config
3
[2024-01-15 08:30:02] WARN: Cache miss
4
[2024-01-15 08:30:03] ERROR: Connection timeout
-- NORMAL --
macro-reformat-logs
Target
1
INFO | Server started
2
DEBUG | Loading config
3
WARN | Cache miss
4
ERROR | Connection timeout
-- NORMAL --
macro-reformat-logs
Hints (0/5)
Reset
⚠ Guest mode —
Sign in
to save your progress and score