File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 49
49
推奨される使用法:
50
50
- 常にグループを使用することで、自動コマンドの削除が容易になる。
51
51
- コマンド自体を短く維持し、より多くの仕事をする関数を呼ぶようにする。
52
- - 定義したスクリプトを複数回ソースしても自動コマンドは繰り替えさないようにす
53
- る 。
52
+ - 定義されているスクリプトを、自動コマンドを繰り返さずに数回ソースできるように
53
+ する 。
54
54
55
55
Vim9 script での例: >
56
56
autocmd_add({replace: true,
@@ -101,9 +101,9 @@ Vim9 script での例: >
101
101
/<start
102
102
}
103
103
104
- | autocmd_add() | 関数で自動コマンドとそのグループのリストを Vim script から追加
105
- することができる。あたなが `:autocmd ` を伴う `:execute ` の使用の必要がある場合
106
- にこれが推奨される 。
104
+ | autocmd_add() | 関数は、 Vim script から autocmds や autocmd グループのリストを
105
+ 追加するために使用できる。 `:autocmd ` で `:execute ` を使用する必要があるような
106
+ 場合は、この関数を使用することが好ましい 。
107
107
108
108
Note: ":autocmd" コマンドの後には、パターンが期待される位置に '|' が現れる場合
109
109
にのみ別のコマンドを続けることができる。これは動作する: >
@@ -170,8 +170,8 @@ Note [group] はあらかじめ定義されていなければならないこと
170
170
==============================================================================
171
171
3. 自動コマンドの除去 *autocmd-remove*
172
172
173
- 以下で説明するコマンドに加えて、| autocmd_delete() | 関数で自動コマンドとそのグ
174
- ループのリストで Vim script から削除することができる 。
173
+ 以下で説明するコマンドに加えて、| autocmd_delete() | 関数を使用し Vim script か
174
+ ら autocmd および autocmd グループのリストを削除できる 。
175
175
176
176
:au[tocmd]! [group] {event} {aupat} [++once] [++nested] {cmd}
177
177
{event} と {aupat} に関連づけられた全ての自動コマンド
You can’t perform that action at this time.
0 commit comments