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
22
33
44 VIMリファレンスマニュアル by Bram Moolenaar
@@ -609,6 +609,8 @@ CmdUndefined ユーザー定義コマンドが使われたが、定義され
609609 のに便利である。パターンはコマンド名に対して照
610610 合される。<amatch> と <afile> の両方ともコマン
611611 ド名に設定される。
612+ これは、| autocmd-nested | なしで定義された自動
613+ コマンドの内部でもトリガーされる。
612614 NOTE: 未定義のコマンドに対して自動補完は機能し
613615 ない。このイベントを使う代わりにユーザー定義コ
614616 マンドを常に定義するようにしてそのコマンドから
@@ -925,7 +927,9 @@ FuncUndefined ユーザー定義関数が使われたが、定義されてい
925927 ある。パターンは関数名に対して照合される。
926928 <amatch> と <afile> の両方とも関数名に設定され
927929 る。
928- コンパイルされた | Vim9 | 関数では発生しない。
930+ これは、| autocmd-nested | なしで定義された自動
931+ コマンド内でもトリガーされるが、| Vim9 | 関数を
932+ コンパイルするときにはトリガーされない。
929933 NOTE: Vim script を書くときには autoload 関数
930934 を使う方がよい。
931935 | 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
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -603,6 +603,8 @@ CmdUndefined When a user command is used but it isn't
603603 when it's used. The pattern is matched
604604 against the command name. Both <amatch> and
605605 <afile> are set to the name of the command.
606+ This is triggered even when inside an
607+ autocommand defined without | autocmd-nested | .
606608 NOTE: Autocompletion won't work until the
607609 command is defined. An alternative is to
608610 always define the user command and have it
@@ -934,7 +936,9 @@ FuncUndefined When a user function is used but it isn't
934936 when it's used. The pattern is matched
935937 against the function name. Both <amatch> and
936938 <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 |
938942 function.
939943 NOTE: When writing Vim scripts a better
940944 alternative is to use an autoloaded function.
You can’t perform that action at this time.
0 commit comments