On Sun, Jul 5, 2009 at 2:38 PM, Tim Chase <[email protected]> wrote:
>
> > I tried to use :g/abc/insert\ etc. just like in the help, and I always
> get
> > "E488 - Trailing characters". Do I have some setting wrong?
>
> The problem seems to reside with the ":insert" continuation as
> other commands work just fine. I found the example that looks
> like yours at
>
> :help :insert
>
A little debugging revealed that this behavior is according to design (but
not as described in the help).
In ex_cmds.h the :insert command is configured as:
EX(CMD_insert, "insert", ex_append,
BANG|RANGE|TRLBAR|CMDWIN|MODIFY),
without the EXTRA bit set which is defined as:
#define EXTRA 0x004 /* allow extra args after command name */
:insert (and :append) do not allow any arguments. The only question is, was
this always this way, and what is the correct behavior?
Ephraim
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---