Buy me a coffee

Learn Vim by running a robot factory.

Steer robots with the keys Vim uses, then fix lines of text to bring the machines online. Short lessons, right in your browser, with a keyboard or the on-screen keys.

Lesson 1 starts on the factory floor.

Two kinds of lessons

Steer the robots

Each robot needs to reach its station. You move them with the same keys that move Vim's cursor.

h j k l

Lesson 1: five robots on a factory floor, each with a matching station to reach.

Try a repair

From lesson 17. The oiler can't read this line.

wrench.txt Oiler · Gear not found

Line 1: oil the gearr. Cursor on “o”.

  1. $ Jump to the end of the line.
  2. x Delete the character under the cursor.

What you'll learn

  1. Floor

    Steer robots one tile at a time, or several with a count.

    h j k l 3l

  2. Terminal

    Jump to the start, the first letter or the end of a line.

    0 ^ $

  3. Words

    Hop forward and back a whole word at a time.

    w b e

  4. Repairs

    Delete, insert, change and replace text. Undo a slip, repeat an edit and find a character.

    x i a A d c r u . f ;

  5. First job

    Get around a longer sheet: top, bottom and search.

    gg G / n N

  6. Second job

    Delete, copy and paste whole lines.

    dd yy p

  7. End of shift

    Save your work and close the file.

    :w :q :wq :q!

Start learning