From c1f91ccc95b0ca1f08883c858dade024559e6f4b Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 11 Feb 2011 04:54:41 -0500 Subject: [PATCH] Update :au docs. --- common/locale/en-US/autocommands.xml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/common/locale/en-US/autocommands.xml b/common/locale/en-US/autocommands.xml index f326c104..359aeacc 100644 --- a/common/locale/en-US/autocommands.xml +++ b/common/locale/en-US/autocommands.xml @@ -19,23 +19,21 @@ :au :autocmd - :autocmd! events pat cmd + :autocmd! events filter cmd

Execute commands automatically on events.

When cmd is not given, list all commands - defined for the given events and pat. + defined for the given events and filter. When ! is given, delete the matching commands rather than listing them.

When cmd is given, add it to the list of commands to be - executed when events occur for pages matching the regular - expression pat. If pat is preceded by an - unquoted !, then the autocommand is executed only for - pages not matching the following regular expression. If the + executed when events occur for pages matching the + comma-separated list of site-filters, filter. If the -javascript (short name -js) option is given, cmd is interpreted as JavaScript code. Otherwise, it is interpreted as an Ex command. @@ -44,14 +42,9 @@

If the -group=group flag is given, add this autocmd to the named group. Any filters for group apply in - addition to pat. + addition to filter.

- - This behavior differs from Vim's implementation in that - pat is a regular expression rather than a glob. - -

Available events: