Hi Bram,

How to repro.

:command! -bang Nice echo 'User-defined Nice'

User defined commands are executed below.
:Nice
User-defined Nice

But, this one isn't executed below.
:Nice!


...Yes, I know I know... So, I do not talk much.
However, there is one thing I can say "I love Monty Python".

I wrote a patch.
Check it out.
--
Best regards,
Hirohito Higashi (h_east)

-- 
-- 
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.
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index bf340de..715cf3c 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -2370,7 +2370,8 @@ do_one_cmd(
 	goto doend;
     }
     /* Check for wrong commands. */
-    if (*p == '!' && ea.cmd[1] == 0151 && ea.cmd[0] == 78)
+    if (*p == '!' && ea.cmd[1] == 0151 && ea.cmd[0] == 78
+	    && !IS_USER_CMDIDX(ea.cmdidx))
     {
 	errormsg = uc_fun_cmd();
 	goto doend;

Raspunde prin e-mail lui