File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 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
2
2
3
3
VIM USER MANUAL - by Bram Moolenaar
4
4
@@ -463,6 +463,17 @@ separated) that trigger the command.
463
463
The optional [++nested] flag allows for nesting of autocommands (see below),
464
464
and finally, {command} is the command to be executed.
465
465
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
+
466
477
467
478
EVENTS
468
479
You can’t perform that action at this time.
0 commit comments