Christian Brabandt wrote:

> I think I have found a bug:
> 
> vim -u NONE -N
> :exe "augroup filetype | au BufNewFile * echo "foobar"|augroup end"
> :au filetype * :echom "filetype command fired"
> 
> Now set the filetype and notice that the autocmmand does not fire:
> :set ft=foobar
> (no output)
> 
> This question came up on Stackoverflow 
> http://vi.stackexchange.com/q/5546/71

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

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

-- 
Some of the well known MS-Windows errors:
        EMEMORY         Memory error caused by..., eh...
        ELICENSE        Your license has expired, give us more money!
        EMOUSE          Mouse moved, reinstall Windows
        EILLEGAL        Illegal error, you are not allowed to see this
        EVIRUS          Undetectable virus found

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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