Skip to content

Commit fd140cc

Browse files
authored
Merge pull request #1176 from tsuyoshicho/update/20221016/repeat
Update repeat.{txt,jax}
2 parents 7510db2 + bb58cca commit fd140cc

File tree

2 files changed

+32
-17
lines changed

2 files changed

+32
-17
lines changed

doc/repeat.jax

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*repeat.txt* For Vim バージョン 9.0. Last change: 2022 Jun 18
1+
*repeat.txt* For Vim バージョン 9.0. Last change: 2022 Sep 22
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -87,7 +87,8 @@ globalコマンドの動作はまず第1に[range]の行をスキャンしマッ
8787
これは、はじめに "found" を含むすべての行を見つけるが、"notfound" にマッチしな
8888
いものがあるときにだけ {cmd} を実行する。
8989

90-
非Exコマンドを実行するには `:normal` コマンドを使用すれば良い: >
90+
任意のExコマンドを使用できる、|ex-cmd-index| を参照。Normalモードコマンドを実
91+
行するには `:normal` コマンドを使用すれば良い: >
9192
:g/pat/normal {commands}
9293
確実に {commands} が完全なコマンドとして終了するようにすること。そうでないと
9394
Vim は全部のマッチに 1 つ 1 つについて、コマンドの残りを期待して貴方の入力を待
@@ -196,7 +197,7 @@ Vim script の書き方はユーザーマニュアルの41章|usr_41.txt|を参
196197
*:source-range*
197198
:[range]so[urce] [++clear]
198199
カレントバッファの[range]行の範囲からExコマンドを読み
199-
込む。
200+
込む。[range] がない場合はすべての行を読み込む。
200201

201202
カレントバッファからコマンドを読み込む時、そのバッファ
202203
が複数回読み込まれる場合は同じスクリプトのID(識別子)
@@ -408,6 +409,10 @@ Vim script の書き方はユーザーマニュアルの41章|usr_41.txt|を参
408409
`import autoload` で使用されたスクリプトで、まだ実際に
409410
は読み込まれていないものには、スクリプトIDの後ろに "A"
410411
が表示される。
412+
スクリプトがある名前で参照されたがシンボリックリンクの
413+
解決後に別の名前で読み込まれたとき、その別のスクリプト
414+
は "->" の後に表示される。例えば、"20->22" はスクリプ
415+
ト20はスクリプト22として読み込まれたことを意味する。
411416
{|+eval| 機能付きでコンパイルされたときのみ有効}
412417

413418
:scr[iptnames][!] {scriptId} *:script*
@@ -772,7 +777,7 @@ NOTE: デバッグモードは未完成である。デバッグはVimの動作
772777
の動作についてより詳細なメッセージを得られる。
773778

774779

775-
デバッグモードを開始する *debug-mode*
780+
デバッグモードを開始する *debug-mode*
776781

777782
デバッグモードを開始するにはこれらの方法のうちどれかを使う:
778783
1. Vimを|-D|引数付きで起動する: >
@@ -799,8 +804,7 @@ NOTE: デバッグモードは未完成である。デバッグはVimの動作
799804
いた場合には分けて表示される。
800805

801806

802-
デバッグモード
803-
--------------
807+
☆デバッグモード
804808

805809
デバッグモードに入ると、通常のExコマンドが使える。例えば、変数の値を見るには: >
806810
echo idx
@@ -883,6 +887,10 @@ NOTE: Vim9 script で、コマンドがスクリプトレベルで記述され
883887
行する場合、"step" はローカル変数を検査できるコンパイル済みコンテキストで1回、
884888
そしてコマンドを実行する直前に1回停止する。
885889

890+
:def 関数ではまだ宣言されていない変数は検査することができない。宣言された変数
891+
は検査でき、また宣言されたブロックが終了しても検査できる。コマンドではこうする
892+
ことができず、したがって少々誤解を招くかもしれない(しかし便利に使える)。
893+
886894
バックトレースは、関数呼び出しの階層を表示する。例えば:
887895
>bt ~
888896
3 function One[3] ~
@@ -898,8 +906,7 @@ NOTE: Vim9 script で、コマンドがスクリプトレベルで記述され
898906
ムの、現在行の内容を表示する方法はまだない。
899907

900908

901-
ブレークポイントの定義
902-
----------------------
909+
☆ブレークポイントの定義
903910
*:breaka* *:breakadd*
904911
:breaka[dd] func [lnum] {name}
905912
関数にブレークポイントを設定する。例: >
@@ -961,8 +968,7 @@ Note 関数はまず読み込まれ、後で実行される。読み込まれた
961968
ポイントがチェックされ、実行されるときに "func" ブレークポイントがチェックされ
962969
る。
963970

964-
ブレークポイントの削除
965-
----------------------
971+
☆ブレークポイントの削除
966972
*:breakd* *:breakdel* *E161*
967973
:breakd[el] {nr}
968974
ブレークポイント{nr}を削除する。|:breaklist|を使って番号を確認
@@ -986,15 +992,13 @@ Note 関数はまず読み込まれ、後で実行される。読み込まれた
986992
と "*explorer.vim"、"*explorer*" は違う。
987993

988994

989-
ブレークポイントを列挙する
990-
--------------------------
995+
☆ブレークポイントを列挙する
991996
*:breakl* *:breaklist*
992997
:breakl[ist]
993998
全てのブレークポイントを列挙する。
994999

9951000

996-
その他
997-
------
1001+
☆その他
9981002

9991003
*:debugg* *:debuggreedy*
10001004
:debugg[reedy]

en/repeat.txt

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*repeat.txt* For Vim version 9.0. Last change: 2022 Jun 18
1+
*repeat.txt* For Vim version 9.0. Last change: 2022 Sep 22
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -92,7 +92,8 @@ pattern and do not match another pattern: >
9292
This first finds all lines containing "found", but only executes {cmd} when
9393
there is no match for "notfound".
9494

95-
To execute a non-Ex command, you can use the `:normal` command: >
95+
Any Ex command can be used, see |ex-cmd-index|. To execute a Normal mode
96+
command, you can use the `:normal` command: >
9697
:g/pat/normal {commands}
9798
Make sure that {commands} ends with a whole command, otherwise Vim will wait
9899
for you to type the rest of the command for each match. The screen will not
@@ -200,7 +201,8 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
200201
*:source-range*
201202
:[range]so[urce] [++clear]
202203
Read Ex commands from the [range] of lines in the
203-
current buffer.
204+
current buffer. When [range] is omitted read all
205+
lines.
204206

205207
When sourcing commands from the current buffer, the
206208
same script-ID |<SID>| is used even if the buffer is
@@ -417,6 +419,10 @@ For writing a Vim script, see chapter 41 of the user manual |usr_41.txt|.
417419
For a script that was used with `import autoload` but
418420
was not actually sourced yet an "A" is shown after the
419421
script ID.
422+
For a script that was referred to by one name but
423+
after resolving symbolic links got sourced with
424+
another name the other script is after "->". E.g.
425+
"20->22" means script 20 was sourced as script 22.
420426
{not available when compiled without the |+eval|
421427
feature}
422428

@@ -900,6 +906,11 @@ executed like a normal Ex command, "step" will stop once in the compiled
900906
context, where local variables can be inspected, and once just before
901907
executing the command.
902908

909+
In a :def function variables that haven't been declared yet cannot be
910+
inspected. Variables that have been declared can be inspected, also when the
911+
block they were declared in has finished. In commands this would not be
912+
possible, thus is slightly misleading (but can be useful).
913+
903914
The backtrace shows the hierarchy of function calls, e.g.:
904915
>bt ~
905916
3 function One[3] ~

0 commit comments

Comments
 (0)