blob: 459542e30466f8586f7f2c99fe87a6c01ebbcb8b [file] [log] [blame]
Bram Moolenaar71badf92023-04-22 22:40:14 +01001VIMTUTOR(1) General Commands Manual VIMTUTOR(1)
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
Bram Moolenaar071d4272004-06-13 20:20:40 +00003NAME
4 vimtutor - the Vim tutor
5
6SYNOPSIS
Paul Desmond Parker17c71da2024-11-03 20:47:53 +01007 vimtutor [-l | --language ISO639] [-c | --chapter NUMBER] [-g | --gui]
8 [ISO639]
9 vimtutor [-h | --help]
10 vimtutor [--list]
Bram Moolenaar071d4272004-06-13 20:20:40 +000011
12DESCRIPTION
Paul Desmond Parker17c71da2024-11-03 20:47:53 +010013 Vimtutor starts the Vim tutor.
Bram Moolenaar071d4272004-06-13 20:20:40 +000014
Bram Moolenaar8299df92004-07-10 09:47:34 +000015 The Vimtutor is useful for people that want to learn their first Vim
16 commands.
Bram Moolenaar071d4272004-06-13 20:20:40 +000017
Bram Moolenaar446cb832008-06-24 21:56:24 +000018 The optional argument -g starts vimtutor with gvim rather than vim, if
RestorerZ81b62dd2024-08-15 21:39:33 +020019 the GUI version of Vim is available, or falls back to vim if gvim is
Bram Moolenaar446cb832008-06-24 21:56:24 +000020 not found.
21
Bram Moolenaar8299df92004-07-10 09:47:34 +000022 The optional [language] argument is the two-letter name of a language,
23 like "it" or "es". If the [language] argument is missing, the language
Paul Desmond Parker17c71da2024-11-03 20:47:53 +010024 of the current locale will be used. If a tutor in this language is
25 available, it will be used. Otherwise the English version will be
Bram Moolenaar8299df92004-07-10 09:47:34 +000026 used.
Bram Moolenaar071d4272004-06-13 20:20:40 +000027
Paul Desmond Parker17c71da2024-11-03 20:47:53 +010028 Vimtutor only opens temporary copies of the original tutor files, there
29 is no danger of overwriting the lessons.
30
Bram Moolenaar071d4272004-06-13 20:20:40 +000031 Vim is always started in Vi compatible mode.
32
Paul Desmond Parker17c71da2024-11-03 20:47:53 +010033OPTIONS
34 -l, --language=ISO639
35 Set the two or three letter language code. E.g. 'it', 'es',
36 'bar'. Defaults to language of locale if available, else to Eng
37 lish.
38
39 -c, --chapter=NUMBER
40 Set the one or two digit chapter number. Defaults to chapter
41 one.
42
43 -g, --gui
44 Start vimtutor in the GUI version of vim if available, otherwise
45 fallback to console vim.
46
47 -h, --help
48 Display usage information.
49
50 --list Display chapters and languages.
51
52EXAMPLES
53 To start vimtutor in German on chapter one:
54
55 vimtutor de
56
57 In English on chapter two:
58
59 vimtutor -c2
60
61 Longform command for Bavarian in the GUI on chapter one:
62
63 vimtutor --language bar --chapter 1 --gui
64
Bram Moolenaar071d4272004-06-13 20:20:40 +000065FILES
RestorerZ81b62dd2024-08-15 21:39:33 +020066 /usr/local/share/vim/vim??/tutor/tutor[.language]
Paul Desmond Parker17c71da2024-11-03 20:47:53 +010067 The Vimtutor chapter one text file(s).
68
69 /usr/local/share/vim/vim??/tutor/tutor02[.language]
70 The Vimtutor chapter two text file(s).
Bram Moolenaar071d4272004-06-13 20:20:40 +000071
RestorerZ81b62dd2024-08-15 21:39:33 +020072 /usr/local/share/vim/vim??/tutor/tutor.vim
Paul Desmond Parker17c71da2024-11-03 20:47:53 +010073 The Vim script used to copy the Vimtutor chapter one
74 text file.
75
76 /usr/local/share/vim/vim??/tutor/tutor02.vim
77 The Vim script used to copy the Vimtutor chapter two
78 text file.
Bram Moolenaar071d4272004-06-13 20:20:40 +000079
80AUTHOR
Paul Desmond Parker17c71da2024-11-03 20:47:53 +010081 The Vi Tutorial was originally written for Vi by Michael C. Pierce and
82 Robert K. Ware, Colorado School of Mines using ideas supplied by
83 Charles Smith, Colorado State University. E-mail: bware@mines.col
84 orado.edu.
85
86 Modified for Vim by Bram Moolenaar.
87
88 Translation contributors are listed in the tutor files.
Bram Moolenaar071d4272004-06-13 20:20:40 +000089
90SEE ALSO
91 vim(1)
92
Paul Desmond Parker17c71da2024-11-03 20:47:53 +010093 2024 November 03 VIMTUTOR(1)