VimDojo
Lessons
Challenges
Editor Demo
Login
Get Started
← Back to Challenges
beginner
Time limit: 0:30
Swap Two Lines
Use dd and p to swap adjacent lines.
Commands
dd
p
Swap Two Lines
Use dd and p to swap adjacent lines.
Time
0:00
/ 0:30
Editor
0 keys
1
s
econd
2
first
-- NORMAL --
swap-two-lines
Target
1
first
2
second
-- NORMAL --
swap-two-lines
Hints (0/2)
Reset
⚠ Guest mode —
Sign in
to save your progress and score