Hello,

Consider the following:

augroup TestLeave
  au!
  au VimLeave * echo "hello"
augroup END

Now if I do:

:augroup! TestLeave

TestLeave is still echoing hello.

Whereas if I do:

:au! TestLeave

TestLeave is deleted.

Is this a case covered by:


                                                *:augroup-delete* *E367*
:aug[roup]! {name}              Delete the autocmd group {name}.  Don't use
                                this if there is still an autocommand using
                                this group!  This is not checked.

Or doesn't it make sense to put an "au VimLeave" in an augroup
anyway?

Would be nice if someone could elaborate a bit on this.

c
-- 
_B A U S T E L L E N_ lesen!  --->> <http://www.blacktrash.org/baustellen.html>

Reply via email to