Mercurial > vim
comparison runtime/doc/autocmd.txt @ 22958:e7c125224b1a
Update runtime files
Commit: https://github.com/vim/vim/commit/4466ad6baa22485abb1147aca3340cced4778a66
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 21 13:16:30 2020 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 21 Nov 2020 13:30:04 +0100 |
parents | 6d50182e7e24 |
children | ad674a98058a |
comparison
equal
deleted
inserted
replaced
22957:80212aa40750 | 22958:e7c125224b1a |
---|---|
1 *autocmd.txt* For Vim version 8.2. Last change: 2020 Oct 26 | 1 *autocmd.txt* For Vim version 8.2. Last change: 2020 Nov 12 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
67 If [++once] is supplied the command is executed once, | 67 If [++once] is supplied the command is executed once, |
68 then removed ("one shot"). | 68 then removed ("one shot"). |
69 | 69 |
70 The special pattern <buffer> or <buffer=N> defines a buffer-local autocommand. | 70 The special pattern <buffer> or <buffer=N> defines a buffer-local autocommand. |
71 See |autocmd-buflocal|. | 71 See |autocmd-buflocal|. |
72 | |
73 If the `:autocmd` is in Vim9 script then {cmd} will be executed as in Vim9 | |
74 script. Thus this depends on where the autocmd is defined, not where it is | |
75 triggered. | |
72 | 76 |
73 Note: The ":autocmd" command can only be followed by another command when the | 77 Note: The ":autocmd" command can only be followed by another command when the |
74 '|' appears before {cmd}. This works: > | 78 '|' appears before {cmd}. This works: > |
75 :augroup mine | au! BufRead | augroup END | 79 :augroup mine | au! BufRead | augroup END |
76 But this sees "augroup" as part of the defined command: > | 80 But this sees "augroup" as part of the defined command: > |