Hi shawn!

On Sa, 04 Aug 2012, shawn wilson wrote:

> so, i go to open a file:
> :o t2.pl
> E37: No write since last change (add ! to override)
> 
> ok, fine:
> :o! t2.pl
> E477: No ! allowed
> 
> so, what is the issue and shouldn't the error be better / more descriptive?

Here is a patch, allowing :o!

diff --git a/src/ex_cmds.h b/src/ex_cmds.h
--- a/src/ex_cmds.h
+++ b/src/ex_cmds.h
@@ -662,7 +662,7 @@
 EX(CMD_nunmenu,                "nunmenu",      ex_menu,
                        EXTRA|TRLBAR|NOTRLCOM|USECTRLV|CMDWIN),
 EX(CMD_open,           "open",         ex_open,
-                       RANGE|EXTRA),
+                       RANGE|EXTRA|BANG),
 EX(CMD_oldfiles,       "oldfiles",     ex_oldfiles,
                        BANG|TRLBAR|SBOXOK|CMDWIN),
 EX(CMD_omap,           "omap",         ex_map,


regards,
Christian

-- 
You received this message from the "vim_use" 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

Reply via email to