File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
- *autocmd.txt* For Vim バージョン 9.1. Last change: 2025 Feb 08
1
+ *autocmd.txt* For Vim バージョン 9.1. Last change: 2025 Mar 08
2
2
3
3
4
4
VIMリファレンスマニュアル by Bram Moolenaar
@@ -609,6 +609,8 @@ CmdUndefined ユーザー定義コマンドが使われたが、定義され
609
609
のに便利である。パターンはコマンド名に対して照
610
610
合される。<amatch> と <afile> の両方ともコマン
611
611
ド名に設定される。
612
+ これは、| autocmd-nested | なしで定義された自動
613
+ コマンドの内部でもトリガーされる。
612
614
NOTE: 未定義のコマンドに対して自動補完は機能し
613
615
ない。このイベントを使う代わりにユーザー定義コ
614
616
マンドを常に定義するようにしてそのコマンドから
@@ -925,7 +927,9 @@ FuncUndefined ユーザー定義関数が使われたが、定義されてい
925
927
ある。パターンは関数名に対して照合される。
926
928
<amatch> と <afile> の両方とも関数名に設定され
927
929
る。
928
- コンパイルされた | Vim9 | 関数では発生しない。
930
+ これは、| autocmd-nested | なしで定義された自動
931
+ コマンド内でもトリガーされるが、| Vim9 | 関数を
932
+ コンパイルするときにはトリガーされない。
929
933
NOTE: Vim script を書くときには autoload 関数
930
934
を使う方がよい。
931
935
| autoload-functions | を参照。
Original file line number Diff line number Diff line change 1
- *autocmd.txt* For Vim version 9.1. Last change: 2025 Feb 08
1
+ *autocmd.txt* For Vim version 9.1. Last change: 2025 Mar 08
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -603,6 +603,8 @@ CmdUndefined When a user command is used but it isn't
603
603
when it's used. The pattern is matched
604
604
against the command name. Both <amatch> and
605
605
<afile> are set to the name of the command.
606
+ This is triggered even when inside an
607
+ autocommand defined without | autocmd-nested | .
606
608
NOTE: Autocompletion won't work until the
607
609
command is defined. An alternative is to
608
610
always define the user command and have it
@@ -934,7 +936,9 @@ FuncUndefined When a user function is used but it isn't
934
936
when it's used. The pattern is matched
935
937
against the function name. Both <amatch> and
936
938
<afile> are set to the name of the function.
937
- Not triggered when compiling a | Vim9 |
939
+ This is triggered even when inside an
940
+ autocommand defined without | autocmd-nested | ,
941
+ but not triggered when compiling a | Vim9 |
938
942
function.
939
943
NOTE: When writing Vim scripts a better
940
944
alternative is to use an autoloaded function.
You can’t perform that action at this time.
0 commit comments