Skip to content

Commit 585e1d7

Browse files
committed
usr_40.txt: Update Vim 9.0.0752
1 parent fb88d19 commit 585e1d7

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

en/usr_40.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*usr_40.txt* For Vim version 9.0. Last change: 2022 Jan 03
1+
*usr_40.txt* For Vim version 9.0. Last change: 2022 Jun 23
22

33
VIM USER MANUAL - by Bram Moolenaar
44

@@ -463,6 +463,17 @@ separated) that trigger the command.
463463
The optional [++nested] flag allows for nesting of autocommands (see below),
464464
and finally, {command} is the command to be executed.
465465

466+
When adding an autocommand the already existing ones remain. To avoid adding
467+
the autocommand several times you should use this form: >
468+
469+
:augroup updateDate
470+
: autocmd!
471+
: autocmd BufWritePre * call DateInsert()
472+
:augroup END
473+
474+
This will delete any previously defined autocommand with `:autocmd!` before
475+
defining the new one. Groups are explained later.
476+
466477

467478
EVENTS
468479

0 commit comments

Comments
 (0)