Mercurial > vim
diff runtime/doc/autocmd.txt @ 23798:59efd230b373 v8.2.2440
patch 8.2.2440: documentation based on patches is outdated
Commit: https://github.com/vim/vim/commit/853886722c051ecaef6d818ce32a822e4f43dc2b
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jan 31 17:03:52 2021 +0100
patch 8.2.2440: documentation based on patches is outdated
Problem: Documentation based on patches is outdated.
Solution: Add changes to documentation in a patch.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 31 Jan 2021 17:15:04 +0100 |
parents | fab58304f77d |
children | 4ab4ef0c48b1 |
line wrap: on
line diff
--- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 8.2. Last change: 2020 Dec 19 +*autocmd.txt* For Vim version 8.2. Last change: 2021 Jan 28 VIM REFERENCE MANUAL by Bram Moolenaar @@ -54,7 +54,8 @@ 2. Defining autocommands *autocmd-def :au[tocmd] [group] {event} {pat} [++once] [++nested] {cmd} Add {cmd} to the list of commands that Vim will execute automatically on {event} for a file matching - {pat} |autocmd-patterns|. + {pat} |autocmd-patterns|. + Here {event} cannot be "*". *E1155* Note: A quote character is seen as argument to the :autocmd and won't start a comment. Vim always adds the {cmd} after existing autocommands,