On Sun, Jul 5, 2009 at 5:14 PM, Efraim Yawitz <[email protected]>wrote:
>
> 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?
>
>
Now I looked at the source of vim 4.6 and I found this in the table of ex
command definitions:
{(char_u *)"insert", BANG+RANGE+TRLBAR}, /* not
supported */
so it seems that at one point :insert was not supported at all
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---