comparison runtime/doc/autocmd.txt @ 24569:e3ec2ec8841a

Update runtime files Commit: https://github.com/vim/vim/commit/4c295027a426986566cd7a76c47a6d3a529727e7 Author: Bram Moolenaar <Bram@vim.org> Date: Sun May 2 17:19:11 2021 +0200 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Sun, 02 May 2021 17:30:05 +0200
parents 4ab4ef0c48b1
children e69e7133c9cf
comparison
equal deleted inserted replaced
24568:3671ff322103 24569:e3ec2ec8841a
1 *autocmd.txt* For Vim version 8.2. Last change: 2021 Mar 13 1 *autocmd.txt* For Vim version 8.2. Last change: 2021 Apr 25
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
1520 :doautoa[ll] [<nomodeline>] [group] {event} [fname] 1520 :doautoa[ll] [<nomodeline>] [group] {event} [fname]
1521 Like ":doautocmd", but apply the autocommands to each 1521 Like ":doautocmd", but apply the autocommands to each
1522 loaded buffer. The current buffer is done last. 1522 loaded buffer. The current buffer is done last.
1523 1523
1524 Note that [fname] is used to select the autocommands, 1524 Note that [fname] is used to select the autocommands,
1525 not the buffers to which they are applied. 1525 not the buffers to which they are applied. Example: >
1526 augroup mine
1527 autocmd!
1528 autocmd FileType * echo expand('<amatch>')
1529 augroup END
1530 doautoall mine FileType Loaded-Buffer
1531 < Sourcing this script, you'll see as many
1532 "Loaded-Buffer" echoed as there are loaded buffers.
1526 1533
1527 Careful: Don't use this for autocommands that delete a 1534 Careful: Don't use this for autocommands that delete a
1528 buffer, change to another buffer or change the 1535 buffer, change to another buffer or change the
1529 contents of a buffer; the result is unpredictable. 1536 contents of a buffer; the result is unpredictable.
1530 This command is intended for autocommands that set 1537 This command is intended for autocommands that set