1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 01:34:11 +01:00

Update :au docs.

This commit is contained in:
Kris Maglione
2011-02-11 04:54:41 -05:00
parent 40709ea2e9
commit c1f91ccc95

View File

@@ -19,23 +19,21 @@
<item> <item>
<tags>:au :autocmd</tags> <tags>:au :autocmd</tags>
<spec>:au<oa>tocmd</oa><oa>!</oa> <oa>events</oa> <oa>pat</oa> <oa>cmd</oa></spec> <spec>:au<oa>tocmd</oa><oa>!</oa> <oa>events</oa> <oa>filter</oa> <oa>cmd</oa></spec>
<description> <description>
<p>Execute commands automatically on events.</p> <p>Execute commands automatically on events.</p>
<p> <p>
When <oa>cmd</oa> is not given, list all commands When <oa>cmd</oa> is not given, list all commands
defined for the given <oa>events</oa> and <oa>pat</oa>. defined for the given <oa>events</oa> and <oa>filter</oa>.
When <oa>!</oa> is given, delete the matching commands When <oa>!</oa> is given, delete the matching commands
rather than listing them. rather than listing them.
</p> </p>
<p> <p>
When <oa>cmd</oa> is given, add it to the list of commands to be When <oa>cmd</oa> is given, add it to the list of commands to be
executed when <oa>events</oa> occur for pages matching the regular executed when <oa>events</oa> occur for pages matching the
expression <oa>pat</oa>. If <oa>pat</oa> is preceded by an comma-separated list of <t>site-filters</t>, <oa>filter</oa>. If the
unquoted <em>!</em>, then the autocommand is executed only for
pages not matching the following regular expression. If the
<em>-javascript</em> (short name <em>-js</em>) option is given, <em>-javascript</em> (short name <em>-js</em>) option is given,
<oa>cmd</oa> is interpreted as JavaScript code. Otherwise, it is <oa>cmd</oa> is interpreted as JavaScript code. Otherwise, it is
interpreted as an Ex command. interpreted as an Ex command.
@@ -44,14 +42,9 @@
<p> <p>
If the <em>-group</em>=<a>group</a> flag is given, add this autocmd If the <em>-group</em>=<a>group</a> flag is given, add this autocmd
to the named <t>group</t>. Any filters for <a>group</a> apply in to the named <t>group</t>. Any filters for <a>group</a> apply in
addition to <oa>pat</oa>. addition to <oa>filter</oa>.
</p> </p>
<note>
This behavior differs from Vim's implementation in that
<oa>pat</oa> is a regular expression rather than a glob.
</note>
<p>Available <oa>events</oa>:</p> <p>Available <oa>events</oa>:</p>
<dl tag="autocommand-list"/> <dl tag="autocommand-list"/>