diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-11-21 13:16:30 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-11-21 13:16:30 +0100 |
commit | 4466ad6baa22485abb1147aca3340cced4778a66 (patch) | |
tree | ca11c0216ad16b5ce923f32bebaf116bc0ffc0e9 /runtime/doc/autocmd.txt | |
parent | 2d718267f4b7dcd65261c9f2acd59a6f6bdc8641 (diff) | |
download | vim-git-4466ad6baa22485abb1147aca3340cced4778a66.tar.gz |
Update runtime files
Diffstat (limited to 'runtime/doc/autocmd.txt')
-rw-r--r-- | runtime/doc/autocmd.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 0a668c195..c35e89907 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 8.2. Last change: 2020 Oct 26 +*autocmd.txt* For Vim version 8.2. Last change: 2020 Nov 12 VIM REFERENCE MANUAL by Bram Moolenaar @@ -70,6 +70,10 @@ effects. Be careful not to destroy your text. 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 +script. Thus this depends on where the autocmd is defined, not where it is +triggered. + Note: The ":autocmd" command can only be followed by another command when the '|' appears before {cmd}. This works: > :augroup mine | au! BufRead | augroup END |