From cbcc05396bbadaae2f5710c59aeff9ef60095f7a Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 16 Jun 2014 20:46:27 +0100 Subject: [PATCH] Complete hook documentation in README --- README.asciidoc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.asciidoc b/README.asciidoc index 3d2e9858..cbe66bc6 100644 --- a/README.asciidoc +++ b/README.asciidoc @@ -730,9 +730,9 @@ Hooks commands can be registred to be executed when certain events arise. to register a hook, use the hook command. ------------------------------------------------------- -:hook ------------------------------------------------------- +----------------------------------------------------------------------- +:hook [-group ] +----------------------------------------------------------------------- can be either global, buffer or window (or any of their prefixes), the scope are hierarchical, meaning that a Window calling a hook will @@ -748,6 +748,15 @@ use the following command: :hook global WinCreate .*\.cc %{ addhl number_lines } ----------------------------------------------------- +if is given, make this hook part of the named group. groups +are used for removing hooks with the +rmhooks+ command + +----------------------- +rmhooks +----------------------- + +will remove every hooks in that are part of the given group. + existing hooks are: * +NormalIdle+: A certain duration has passed since last key was pressed in