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 #16

Mixed‑Indent Mayhem: Tabs → Two‑Space Salvation

A new dev just joined the team—and they’re on Team Tab. Our codebase is littered in parts with these rogue tabs that are just an eyesore for everyone. Convert every leading tab to two spaces!

challenge.txt :set list

Start

 1class CoffeeMachine
 2→   def start_brew
 3→   →   puts "Brewing..."
 4    cleanup
 5→   end
 6
 7→   def legacy_mode
 8        puts "Legacy only"
 9  →   end
10end

Goal

 1class CoffeeMachine
 2  def start_brew
 3    puts "Brewing..."
 4    cleanup
 5  end
 6
 7  def legacy_mode
 8    puts "Legacy only"
 9  end
10end

Members only

Hold on, cowboy

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