Screen Too Small

This course material requires a larger screen to properly display the terminal and editor interfaces.

Please use a tablet, laptop, or desktop computer for the best learning experience.

You can continue browsing, but the experience will be significantly limited.

Vim Dojo challenge #19

Macro Cruise Control

Robert jotted his cruise plans on paper—badly. Each day has two lines, but they’re out of order. Use a macro to pair and sort the days before chaos sets sail.

challenge.txt :set list

Start

 1Bahamas Cruise Schedule
 2
 3Day 4
 4Visit local straw market
 5Day 2
 6Snorkeling excursion
 7Day 1
 8Board ship and safety briefing
 9Day 3
10Sunset deck party
11Day 5
12Return to port and disembark

Goal

 1Bahamas Cruise Schedule
 2
 3Day 1
 4Board ship and safety briefing
 5Day 2
 6Snorkeling excursion
 7Day 3
 8Sunset deck party
 9Day 4
10Visit local straw market
11Day 5
12Return to port and disembark

Members only

Hold on, cowboy

You gotta sign in to take on challenges. New ones drop every week — they're fun, and insightful.