Skip to content

Commit fc68681

Browse files
authored
Merge pull request #1782 from h-east/add-pi_tutor
Add pi_tutor.{txt,jax}
2 parents b89fbce + 3445e7e commit fc68681

File tree

2 files changed

+105
-0
lines changed

2 files changed

+105
-0
lines changed

doc/pi_tutor.jax

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
*pi_tutor.txt* For Vim バージョン 9.1. Last change: 2024 Nov 03
2+
3+
☆Vim の対話的なチュートリアル *vim-tutor-mode*
4+
5+
vim-tutor-mode は、vim およびサードパーティのプラグインの対話的なチュートリア
6+
ルを実行および作成するためのシステムを提供する。これは、古くからある
7+
`vimtutor` システムに代わるものである。
8+
9+
=============================================================================
10+
1. 使用法 *vim-tutor-usage*
11+
12+
vim-tutor-mode チュートリアルはハイパーテキストドキュメントで、リッチテキスト
13+
とリンクが含まれている。テキストの残りの部分と区別するために、リンクには下線が
14+
引かれている。
15+
カーソルをリンクの上に置いて <Enter> キーを押すか、リンクをダブルクリックする
16+
と、リンクをたどることができる。
17+
18+
1.1 コマンド
19+
------------
20+
*:Tutor*
21+
:Tutor {tutorial} チュートリアルを開く。{tutorial} のコマンドライン補完
22+
が提供されており、候補は 'runtimepath' の 'tutor/' フォ
23+
ルダにある '.tutor' ファイルのリストである。'vim-' で
24+
始まるチュートリアルは常に最初に表示される。
25+
26+
{tutorial} が指定されていない場合、コマンドは Vim の
27+
`vimtutor` に相当する 'vim-01-beginner' チュートリアル
28+
を開始する。
29+
30+
=============================================================================
31+
2. チュートリアルの作成 *vim-tutor-create*
32+
33+
vim-tutor-mode チュートリアルの作成は簡単である。使用される形式の概要について
34+
は、'tutor.tutor' ファイルを参照: >
35+
36+
:Tutor tutor
37+
<
38+
新しいチュートリアルは、:Tutor コマンドで検出されるように、'runtimepath'
39+
'tutor/' フォルダに配置する必要がある。
40+
41+
チュートリアルを書くときは、通常のドキュメントよりもカジュアルなスタイルを使用
42+
することをお勧めする (コンテンツで必要な場合を除く)。
43+
44+
=============================================================================
45+
3. コントリビュートする
46+
47+
プラグインの開発は github [1] で行われている。気軽に問題を報告したり、提案した
48+
りして欲しい。
49+
50+
[1]: https://github.com/fmoralesc/vim-tutor-mode
51+
52+
=============================================================================
53+
vim:tw=78:ts=8:noet:ft=help:norl:

en/pi_tutor.txt

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
*pi_tutor.txt* For Vim version 9.1. Last change: 2024 Nov 03
2+
3+
INTERACTIVE TUTORIALS FOR VIM *vim-tutor-mode*
4+
5+
vim-tutor-mode provides a system to follow and create interactive tutorials
6+
for vim and third party plugins. It replaces the venerable `vimtutor` system.
7+
8+
=============================================================================
9+
1. Usage *vim-tutor-usage*
10+
11+
vim-tutor-mode tutorials are hypertext documents, they have rich text and
12+
contain links. To stand out from the rest of the text, links are underlined.
13+
You can follow them by placing the cursor over them and pressing <Enter>, or
14+
by double-clicking them.
15+
16+
1.1 Commands
17+
------------
18+
*:Tutor*
19+
:Tutor {tutorial} Opens a tutorial. Command-line completion for
20+
{tutorial} is provided, the candidates are a list of
21+
'.tutor' files found in the 'tutor/' folder in
22+
the 'runtimepath'. Tutorials prefixed with 'vim-' will
23+
always be shown first.
24+
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+
=============================================================================
30+
2. Creating tutorials *vim-tutor-create*
31+
32+
Writing vim-tutor-mode tutorials is easy. For an overview of the format used,
33+
please consult the 'tutor.tutor' file: >
34+
35+
:Tutor tutor
36+
<
37+
New tutorials must be placed in the 'tutor/' folder in the 'runtimepath'
38+
to be detected by the :Tutor command.
39+
40+
It is recommended to use a less formal style when writing tutorials than in
41+
regular documentation (unless the content requires it).
42+
43+
=============================================================================
44+
3. Contributing
45+
46+
Development of the plugin is done over at github [1]. Feel free to report
47+
issues and make suggestions.
48+
49+
[1]: https://github.com/fmoralesc/vim-tutor-mode
50+
51+
=============================================================================
52+
vim:tw=78:ts=8:noet:ft=help:norl:

0 commit comments

Comments
 (0)