Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update autocmd.{txt,jax} #1981

Merged
merged 1 commit into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions doc/autocmd.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*autocmd.txt* For Vim バージョン 9.1. Last change: 2025 Feb 08
*autocmd.txt* For Vim バージョン 9.1. Last change: 2025 Mar 08


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -609,6 +609,8 @@ CmdUndefined ユーザー定義コマンドが使われたが、定義され
のに便利である。パターンはコマンド名に対して照
合される。<amatch> と <afile> の両方ともコマン
ド名に設定される。
これは、|autocmd-nested| なしで定義された自動
コマンドの内部でもトリガーされる。
NOTE: 未定義のコマンドに対して自動補完は機能し
ない。このイベントを使う代わりにユーザー定義コ
マンドを常に定義するようにしてそのコマンドから
Expand Down Expand Up @@ -925,7 +927,9 @@ FuncUndefined ユーザー定義関数が使われたが、定義されてい
ある。パターンは関数名に対して照合される。
<amatch> と <afile> の両方とも関数名に設定され
る。
コンパイルされた |Vim9| 関数では発生しない。
これは、|autocmd-nested| なしで定義された自動
コマンド内でもトリガーされるが、|Vim9| 関数を
コンパイルするときにはトリガーされない。
NOTE: Vim script を書くときには autoload 関数
を使う方がよい。
|autoload-functions|を参照。
Expand Down
8 changes: 6 additions & 2 deletions en/autocmd.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*autocmd.txt* For Vim version 9.1. Last change: 2025 Feb 08
*autocmd.txt* For Vim version 9.1. Last change: 2025 Mar 08


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -603,6 +603,8 @@ CmdUndefined When a user command is used but it isn't
when it's used. The pattern is matched
against the command name. Both <amatch> and
<afile> are set to the name of the command.
This is triggered even when inside an
autocommand defined without |autocmd-nested|.
NOTE: Autocompletion won't work until the
command is defined. An alternative is to
always define the user command and have it
Expand Down Expand Up @@ -934,7 +936,9 @@ FuncUndefined When a user function is used but it isn't
when it's used. The pattern is matched
against the function name. Both <amatch> and
<afile> are set to the name of the function.
Not triggered when compiling a |Vim9|
This is triggered even when inside an
autocommand defined without |autocmd-nested|,
but not triggered when compiling a |Vim9|
function.
NOTE: When writing Vim scripts a better
alternative is to use an autoloaded function.
Expand Down