Saturday, September 4, 2010

Re: Determine whether vim is loading or whether the VimEnter event was already fired

> I know the way used in vim-addon-manager: it sets key in dictionary on VimEnter
> event, so that at startup there is no `started_up' key and after there is.

Initially, I was hoping that vim would set some variable that could be
checked. Anyway, I now remove all VimEnter autocommands before
sourcing a script and then I then call :doautocommand VimEnter
afterwards.

BTW I noticed that

au! VimEnter

doesn't remove autocommands that belong to a group. So I have to first
get a list of VimEnter autocommands and then remove each group like.
Am I missing something? Is there some magic group name that matches
any group? Something like

au! * VimEnter

or

au! ALL VimEnter

Regards,
Tom

--
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

No comments: