LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

vimtutor

Interactive Vim tutorial

TLDR

Start vim tutor
$ vimtutor
copy
Start in a specific language
$ vimtutor [de]
copy
Start chapter 2 (only available in en and fr)
$ vimtutor -c 2
copy
Launch the tutorial in the GUI version of Vim
$ vimtutor -g
copy
List all supported languages
$ vimtutor --list
copy

SYNOPSIS

vimtutor [-g] [-c chapter] [language]

DESCRIPTION

vimtutor teaches vim basics through hands-on lessons. It creates a copy of the tutorial file and opens it in vim for practice.The tutorial covers essential operations in approximately 30 minutes. Each lesson introduces commands with immediate practice exercises.Topics include navigation, editing, deletion, undo, copy/paste, search, and file operations. These form the foundation for productive vim use.The working copy ensures mistakes don't affect the original. Users can restart with a fresh copy anytime.Available languages include English, German, French, Spanish, Chinese, and many others. The tutorial adapts to system locale.Completing vimtutor provides enough knowledge for basic editing. Advanced features require additional learning.

PARAMETERS

LANGUAGE

ISO-639 language code (e.g. en, de, fr, ja).
-l, --language CODE
Select the tutorial language explicitly. Glued form -lcode / --languagecode also accepted.
-c, --chapter N
Load chapter N (1 or 2). Chapter 2 is only shipped in en and fr.
-g, --gui
Start the GUI version of Vim (gvim) instead of the terminal binary.
--list
List available language codes and exit.
-h, --help
Display help.

LESSONS

Lesson 1

Cursor movement, deletion, insertion, ESC.
Lesson 2
Deletion, operators and motions, undo.
Lesson 3
Put, replace, change operator.
Lesson 4
Location, search, matching, substitute.
Lesson 5
External commands, file operations.
Lesson 6
Open, append, replace, copy, set options.
Lesson 7
Help, vimrc, completion.

CAVEATS

Only covers basics. Full vim proficiency requires significant practice. Some lessons assume US keyboard layout.

HISTORY

vimtutor has been included with vim since early versions, created by Bram Moolenaar (vim's author). It's based on the original vi tutorial by Michael C. Pierce and Robert K. Ware.

SEE ALSO

vim(1), vi(1), nvim(1), vimdiff(1)

Copied to clipboard
Kai