blob: 618fe745ac4aa4612c9d75dc8f155d24949d85d3 [file] [log] [blame]
h-east624bb832024-11-09 18:37:32 +01001*pi_tutor.txt* For Vim version 9.1. Last change: 2024 Nov 09
Yegappan Lakshmanana54816b2024-11-03 10:49:23 +01002
3INTERACTIVE TUTORIALS FOR VIM *vim-tutor-mode*
4
5vim-tutor-mode provides a system to follow and create interactive tutorials
h-east624bb832024-11-09 18:37:32 +01006for vim and third party plugins. It replaces the venerable `vimtutor` system.
Yegappan Lakshmanana54816b2024-11-03 10:49:23 +01007
Christian Brabandtac2bb9d2024-11-04 19:37:24 +01008=============================================================================
Yegappan Lakshmanana54816b2024-11-03 10:49:23 +010091. Usage *vim-tutor-usage*
10
11vim-tutor-mode tutorials are hypertext documents, they have rich text and
h-east624bb832024-11-09 18:37:32 +010012contain links. To stand out from the rest of the text, links are underlined.
Yegappan Lakshmanana54816b2024-11-03 10:49:23 +010013You can follow them by placing the cursor over them and pressing <Enter>, or
14by double-clicking them.
15
161.1 Commands
17------------
18 *:Tutor*
h-east624bb832024-11-09 18:37:32 +010019:Tutor {tutorial} Opens a tutorial. Command-line completion for
Yegappan Lakshmanana54816b2024-11-03 10:49:23 +010020 {tutorial} is provided, the candidates are a list of
21 '.tutor' files found in the 'tutor/' folder in
h-east624bb832024-11-09 18:37:32 +010022 the 'runtimepath'. Tutorials prefixed with 'vim-'
23 will always be shown first.
Yegappan Lakshmanana54816b2024-11-03 10:49:23 +010024
25 If no {tutorial} is provided, the command starts the
26 'vim-01-beginner' tutorial, which is equivalent to
27 Vim's `vimtutor`.
28
29=============================================================================
302. Creating tutorials *vim-tutor-create*
31
h-east624bb832024-11-09 18:37:32 +010032Writing vim-tutor-mode tutorials is easy. For an overview of the format used,
Yegappan Lakshmanana54816b2024-11-03 10:49:23 +010033please consult the 'tutor.tutor' file: >
34
35 :Tutor tutor
36<
37New tutorials must be placed in the 'tutor/' folder in the 'runtimepath'
38to be detected by the :Tutor command.
39
40It is recommended to use a less formal style when writing tutorials than in
41regular documentation (unless the content requires it).
42
Christian Brabandtac2bb9d2024-11-04 19:37:24 +010043=============================================================================
Yegappan Lakshmanana54816b2024-11-03 10:49:23 +0100443. Contributing
45
46Development of the plugin is done over at github [1]. Feel free to report
47issues and make suggestions.
48
49[1]: https://github.com/fmoralesc/vim-tutor-mode
50
Christian Brabandtac2bb9d2024-11-04 19:37:24 +010051=============================================================================
52 vim:tw=78:ts=8:noet:ft=help:norl: