comparison runtime/doc/autocmd.txt @ 28010:c968191a8557

Update runtime files Commit: https://github.com/vim/vim/commit/1588bc8ebee22f2855f27273fc2234fff370f86c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Mar 8 21:35:07 2022 +0000 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Tue, 08 Mar 2022 22:45:09 +0100
parents d19b7aee1925
children e3d6184b89fa
comparison
equal deleted inserted replaced
28009:3bffa026c6d9 28010:c968191a8557
1 *autocmd.txt* For Vim version 8.2. Last change: 2022 Feb 09 1 *autocmd.txt* For Vim version 8.2. Last change: 2022 Mar 04
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
61 Vim always adds the {cmd} after existing autocommands, 61 Vim always adds the {cmd} after existing autocommands,
62 so that the autocommands execute in the order in which 62 so that the autocommands execute in the order in which
63 they were given. 63 they were given.
64 See |autocmd-nested| for [++nested]. "nested" 64 See |autocmd-nested| for [++nested]. "nested"
65 (without the ++) can also be used, for backwards 65 (without the ++) can also be used, for backwards
66 compatibility. 66 compatibility, but not in |Vim9| script. *E1078*
67 *autocmd-once* 67 *autocmd-once*
68 If [++once] is supplied the command is executed once, 68 If [++once] is supplied the command is executed once,
69 then removed ("one shot"). 69 then removed ("one shot").
70 70
71 The special pattern <buffer> or <buffer=N> defines a buffer-local autocommand. 71 The special pattern <buffer> or <buffer=N> defines a buffer-local autocommand.
363 |CmdlineLeave| before the cursor leaves the command line 363 |CmdlineLeave| before the cursor leaves the command line
364 364
365 |InsertEnter| starting Insert mode 365 |InsertEnter| starting Insert mode
366 |InsertChange| when typing <Insert> while in Insert or Replace mode 366 |InsertChange| when typing <Insert> while in Insert or Replace mode
367 |InsertLeave| when leaving Insert mode 367 |InsertLeave| when leaving Insert mode
368 |InsertLeavePre| just before leaving Insert mode
368 |InsertCharPre| when a character was typed in Insert mode, before 369 |InsertCharPre| when a character was typed in Insert mode, before
369 inserting it 370 inserting it
370 371
371 |ModeChanged| after changing the mode 372 |ModeChanged| after changing the mode
372 373