← Back to Challenges
beginner Time limit: 0:30

Swap Two Lines

Use dd and p to swap adjacent lines.

Commands
ddp

Swap Two Lines

Use dd and p to swap adjacent lines.

Time
0:00
/ 0:30
Editor0 keys
1second
2first
-- NORMAL --swap-two-lines
Target
1first
2second
-- NORMAL --swap-two-lines
⚠ Guest mode — Sign in to save your progress and score