Back to Lessons
Sign inintermediate

Indentation

Indent and outdent with > and <

Open companion guide

Goals

0/2
  • Indent line with >>
  • Outdent line with <<
Keys 0 · par 15

Instructions

  1. 1.Select the function body lines
  2. 2.Indent them with >
  3. 3.Make the code properly formatted
Quick KeysNORMAL
h j k lMove cursor
w b eWord movement
i a oEnter insert
dDelete
yYank (copy)
pPaste
uUndo
vVisual mode
:Command mode
/Search

Community pulse

Weekly top score
Leaderboard warming up...
Daily challenge
Loading challenge...
Vim mode: normal

Practice buffer · reset restarts the lesson (not vim u)

Lesson Companion

Use Indentation in real editing

This companion guide helps you complete Indentation with fewer mistakes and better command fluency.

Quick Command Cheatsheet
  • indent
  • >
  • <
When to Use This Motion/Operator

Use this lesson whenever you need to apply precise changes instead of entering long Insert-mode edits with fewer keystrokes.

  • Prefer this over arrow-key micro-movements before each edit.
  • Use this pattern whenever you're working inside Visual Editing tasks.
  • Reach for indent, >, < when this pattern appears.
Common Mistakes
  • Staying in Insert mode after making a change instead of returning to Normal mode.
  • Chaining several keystrokes for an edit a single operator+motion combo would do.
FAQ

How long should this lesson take?

Target completion is 45 seconds, but correctness matters more than speed at first.

Should I move to the next lesson if my score is low?

Revisit the specific commands you missed rather than replaying the whole lesson — targeted practice closes gaps faster at this level.