On Sat, 10 Jan 2009 22:10:13 +0800, Tony Mechelynck wrote:

>
> On 10/01/09 14:20, Yue Wu wrote:
>> On Sat, 10 Jan 2009 21:14:15 +0800, Tony Mechelynck wrote:
>>
>>> Wait, I've remembered something:
>>>
>>> see
>>>     :help autocmd-disable
>>>     :help :noautocmd
>>>     :help 'eventignore'
>>>
>>
>> Still not so useful, because set them when in insert mode still need to  
>> use
>> <C-o>  which will trigger event anyway.
>>
>> Maybe I can define my own event and use them, is it possible?
>>
>
> You could disable them before getting into Insert mode.

It's not so easy and would get things mess up.

>
> As for defining one's own autocommand _event_, that's not possible
> without patching the C code. (Defining auto_commands_ that trigger on
> existing events is of course no problem; and you can trigger an event
> out of turn by means of the ":doautocmd" command).

For example, how to do to different the insertLeave triggered by <C-o> and  
<ESC>?

>
>
> Best regards,
> Tony.



-- 
Regards,
Van.

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

Reply via email to