Mercurial > vim
diff runtime/doc/autocmd.txt @ 23164:99ef85ff1af4
Update runtime files.
Commit: https://github.com/vim/vim/commit/1b884a0053982335f644eec6c71027706bf3c522
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 10 21:11:27 2020 +0100
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 10 Dec 2020 21:15:05 +0100 |
parents | ad674a98058a |
children | a916fca16d4b |
line wrap: on
line diff
--- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 8.2. Last change: 2020 Nov 12 +*autocmd.txt* For Vim version 8.2. Last change: 2020 Dec 10 VIM REFERENCE MANUAL by Bram Moolenaar @@ -70,7 +70,8 @@ 2. Defining autocommands *autocmd-def The special pattern <buffer> or <buffer=N> defines a buffer-local autocommand. See |autocmd-buflocal|. -If the `:autocmd` is in Vim9 script then {cmd} will be executed as in Vim9 +If the `:autocmd` is in Vim9 script (a script that starts with `:vim9script` +and in a `:def` function) then {cmd} will be executed as in Vim9 script. Thus this depends on where the autocmd is defined, not where it is triggered.