blob: 3d3f32b70b9056f1da1d5f4dc2e4ceb47278f74d [file] [log] [blame]
Paul Desmond Parker17c71da2024-11-03 20:47:53 +01001.TH VIMTUTOR 1 "2024 November 03"
Bram Moolenaar071d4272004-06-13 20:20:40 +00002.SH NAME
3vimtutor \- the Vim tutor
4.SH SYNOPSIS
5.br
Paul Desmond Parker17c71da2024-11-03 20:47:53 +01006.B vimtutor [\-l | \-\-language ISO639] [\-c | \-\-chapter NUMBER] [\-g | \-\-gui] [ISO639]
7.br
8.B vimtutor [\-h | \-\-help]
9.br
10.B vimtutor [\-\-list]
Bram Moolenaar071d4272004-06-13 20:20:40 +000011.SH DESCRIPTION
12.B Vimtutor
13starts the
14.B Vim
15tutor.
Bram Moolenaar071d4272004-06-13 20:20:40 +000016.PP
17The
18.B Vimtutor
19is useful for people that want to learn their first
20.B Vim
21commands.
22.PP
Bram Moolenaar8f3f58f2010-01-06 20:52:26 +010023The optional argument \-g starts vimtutor with gvim rather than vim, if the
RestorerZ81b62dd2024-08-15 21:39:33 +020024GUI version of Vim is available, or falls back to vim if gvim is not found.
Bram Moolenaar2b570782008-05-07 15:40:33 +000025.PP
Bram Moolenaar071d4272004-06-13 20:20:40 +000026The optional [language] argument is the two-letter name of a language, like
27"it" or "es".
28If the [language] argument is missing, the language of the current locale will
29be used.
30If a tutor in this language is available, it will be used.
31Otherwise the English version will be used.
32.PP
Paul Desmond Parker17c71da2024-11-03 20:47:53 +010033.B Vimtutor
34only opens temporary copies of the original tutor files, there is no danger of overwriting the lessons.
35.PP
Bram Moolenaar071d4272004-06-13 20:20:40 +000036.B Vim
Paul Desmond Parker17c71da2024-11-03 20:47:53 +010037is always started in
38.B Vi
39compatible mode.
40.SH OPTIONS
41.TP
42.BR \-l ", " \-\-language =\fIISO639\fR
43Set the two or three letter language code. E.g. 'it', 'es', 'bar'. Defaults to language of locale if available, else to English.
44.TP
45.BR \-c ", " \-\-chapter =\fINUMBER\fR
46Set the one or two digit chapter number. Defaults to chapter one.
47.TP
48.BR \-g ", " \-\-gui
49Start
50.B vimtutor
51in the GUI version of vim if available, otherwise fallback to console vim.
52.TP
53.BR \-h ", " \-\-help
54Display usage information.
55.TP
56.BR \-\-list
57Display chapters and languages.
58.SH EXAMPLES
59To start
60.B vimtutor
61in German on chapter one:
62.PP
63.nf
64.RS
65vimtutor de
66.RE
67.fi
68.PP
69In English on chapter two:
70.PP
71.nf
72.RS
73vimtutor -c2
74.RE
75.fi
76.PP
77Longform command for Bavarian in the GUI on chapter one:
78.PP
79.nf
80.RS
81vimtutor --language bar --chapter 1 --gui
82.RE
83.fi
Bram Moolenaar071d4272004-06-13 20:20:40 +000084.SH FILES
85.TP 15
RestorerZ81b62dd2024-08-15 21:39:33 +020086/usr/local/share/vim/vim??/tutor/tutor[.language]
Bram Moolenaar071d4272004-06-13 20:20:40 +000087The
88.B Vimtutor
Paul Desmond Parker17c71da2024-11-03 20:47:53 +010089chapter one text file(s).
Bram Moolenaar071d4272004-06-13 20:20:40 +000090.TP 15
Paul Desmond Parker17c71da2024-11-03 20:47:53 +010091/usr/local/share/vim/vim??/tutor/tutor02[.language]
Bram Moolenaar071d4272004-06-13 20:20:40 +000092The
93.B Vimtutor
Paul Desmond Parker17c71da2024-11-03 20:47:53 +010094chapter two text file(s).
95.TP 15
96/usr/local/share/vim/vim??/tutor/tutor.vim
97The
98.B Vim
99script used to copy the
100.B Vimtutor
101chapter one text file.
102.TP 15
103/usr/local/share/vim/vim??/tutor/tutor02.vim
104The
105.B Vim
106script used to copy the
107.B Vimtutor
108chapter two text file.
109.SH AUTHOR
110.B The Vi Tutorial
111was originally written for Vi by Michael C. Pierce and Robert K. Ware, Colorado School of Mines using ideas supplied by Charles Smith, Colorado State University.
112.B E-mail: bware@mines.colorado.edu.
113.PP
114Modified for
Bram Moolenaar071d4272004-06-13 20:20:40 +0000115.B Vim
116by Bram Moolenaar.
Paul Desmond Parker17c71da2024-11-03 20:47:53 +0100117.PP
118Translation contributors are listed in the tutor files.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000119.SH SEE ALSO
120vim(1)