On Sa, 05 Dez 2015, Bram Moolenaar wrote:

> That exe command has an error, the quoting is wrong.

Yes, posting a bad example

> The second command doesn't work as you expect:
>       filetype        group
>       *               event
>       :echom          pattern

Yes, I just found out. How about adding this to the documentation:

diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt
--- a/runtime/doc/autocmd.txt
+++ b/runtime/doc/autocmd.txt
@@ -1131,6 +1131,9 @@ name!
 :aug[roup] {name}              Define the autocmd group name for the
                                following ":autocmd" commands.  The name "end"
                                or "END" selects the default group.
+                               To avoid confusion, the name should be
+                               different from existing {event} names, as
+                               this might have unwanted side effects.

                                                *:augroup-delete* *E367*
 :aug[roup]! {name}             Delete the autocmd group {name}.  Don't use


Best,
Christian
-- 
Späte Freuden sind die schönsten; sie stehen zwischen entschwundener
Sehnsucht und kommendem Frieden.
                -- Marie von Ebner-Eschenbach

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui