Hi Bram,
On Sun, Mar 27, 2016 at 5:00 AM, Bram Moolenaar <[email protected]> wrote:
>
> Patch 7.4.1658
> Problem: A plugin does not know when VimEnter autocommands were already
> triggered.
> Solution: Add the v:vim_did_enter variable.
> Files: src/eval.c, src/main.c, src/vim.h, src/testdir/test_autocmd.vim,
> src/testdir/test_alot.vim, runtime/doc/autocmd.txt,
> runtime/doc/eval.txt
>
>
When is this variable needed?
!has('vim_starting') or checking by autocommand looks enough for me.
autocmd VimEnter * let s:vim_did_enter = 1
if exists('s:vim_did_enter')
...
endif
>
> --
> In a world without fences, who needs Gates and Windows?
>
> /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
> /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
> \\\ an exciting new programming language -- http://www.Zimbu.org ///
> \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
>
> --
> --
> You received this message from the "vim_dev" 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
--
Takuya Fujiwara
--
--
You received this message from the "vim_dev" 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.