If you try to run a nonexistent user command while there is an
installed CmdUndefined autocmd, Vim will show the wrong error message.
It shows E464 instead of E492.  Here is a minimal example.

$ vim -u NONE -N

Now do:

  au CmdUndefined Snowflake echo "FOO"

Now do:

  :Hanky

What I expect to see is "E492: Not an editor command: Hanky".  This
is, of course, what would be shown had I not made a CmdUndefined
autocmd.

What I actually see is: "E464: Ambiguous use of user-defined command",
which seems wrong.  "Hanky" is not ambiguous between multiple
user-defined commands, as there are no user-defined commands.  "Hanky"
is also not a substring of "Snowflake", either, nor did I hit <TAB>,
so I don't see why there would be any autocompletion issues to worry
about.

-Manny

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