Hi,

Jürgen Krämer wrote:
> Hi,
> 
> Ben Fritz wrote:
>> I can use :noautocmd, and it works exactly as it is supposed to.
>>
>> However,
>>
>> :echo exists(":noautocmd")
>>
>> ==> 0
> 
> and it's missing from command line completion, too. Probably because
> it's not contained in the cmdmods array in ex_docmd.c.

adding

    {"noautocmd", 3, FALSE},

to cmdmods[] in ex_docmd.c makes

  :echo exists(":noautocmd")

return 2, but it doesn't solve the problem of :noautocmd not shown
during command line completion. For that to work something like

        EX(CMD_confirm,         "noautocmd",    ex_wrongmodifier,
                                NEEDARG|EXTRA|NOTRLCOM),

would have to be inserted in the cmdnames[] array in ex_cmds.h, but I'm
not sure if the flags above are correct and where to insert it exactly
as the order of names is significant in resolving ambiguous
abbreviations.

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui