Vim shortcuts practice
Learn Vim shortcuts by pressing them on your own keyboard, one short lesson at a time.
73 shortcuts in 10 lessons. Your progress is kept in this browser.
Getting started
- Just learned
- Recalling
- Steady
- Quick
- Fluent
- Second nature
- Learned
- 0
- Due now
- 0
- New
- 0
- Streak
- 0
Lessons
- 1Modes, part 1
Insert before the cursorAppend after the cursorInsert at the start of the lineAppend at the end of the lineOpen a new line below and insertOpen a new line above and insert
- 2Modes, part 2
Return to Normal modeStart Visual mode (select characters)Start Visual Line mode (select lines)Start Visual Block mode (select a column)Start Replace mode (overtype)
- 3Moving, part 1
Move leftMove downMove upMove rightJump to the start of the next wordJump back to the start of the wordJump to the end of the wordGo to the start of the lineGo to the first non-blank character
- 4Moving, part 2
Go to the end of the lineGo to the first lineGo to the last lineJump to the matching bracketJump to the next blank lineJump to the previous blank lineCursor to the top of the screenCursor to the middle of the screenCursor to the bottom of the screen
- 5Moving, part 3
Scroll a page downScroll a page upScroll half a page downScroll half a page upCenter the cursor line on screenJump back to the previous positionJump forward again
- 6Editing, part 1
UndoRedoDelete the character under the cursorDelete (cut) the lineDelete to the end of the lineDelete to the start of the next wordChange (replace) the wordChange the whole line
- 7Editing, part 2
Change to the end of the lineDelete the character and insertCopy (yank) the lineCopy (yank) to the next wordPaste after the cursorPaste before the cursorJoin the line below to this oneRepeat the last change
- 8Editing, part 3
Indent the lineOutdent the lineSwitch the case of the characterAdd one to the number under the cursorSubtract one from the number under the cursorComplete the word from the file
- 9Search
Search forwardSearch backwardNext matchPrevious matchSearch for the word under the cursorSearch backward for the word under the cursor
- 10Files and windows
Save the fileQuitSave and quitQuit without savingSplit the window horizontallySplit the window verticallyGo to the next windowClose the windowMake all windows the same size
How practice works
Each lesson is up to ten Vim shortcuts from one group. Press the keys on your own keyboard, or tap them on the keyboard on screen. Some combinations, such as Cmd+W, are kept by your browser or system; those are always tapped, so practising never closes your tab.
- Learn shows each new shortcut once with its keys, then asks for it again without them. A small copy of Vim sets each task up, and pressing the shortcut does the job in it. It schedules the next review.
- Practice goes through a lesson at your own pace. Choose whether the keys show always, after three seconds or never. It does not change your review schedule.
- Speed run asks for every shortcut in the lesson once, without hints, against the clock. Get 70% right first time to pass the lesson; your best time is kept.
- Today's session brings back the shortcuts that are due for review, plus up to eight new ones.
Every shortcut climbs six levels as you recall it first time: just learned, recalling, steady, quick, fluent and second nature. Reviews space out from a day to six months; a miss drops it back two levels and brings it back within minutes. Progress is stored in this browser only, separately for each system.
To look a shortcut up instead, use the Vim keyboard shortcuts list or print the Vim cheat sheet.