view src/testdir/test_autocmd.vim @ 8738:e770986c855a v7.4.1658

commit https://github.com/vim/vim/commit/1473551a4457d4920b235eeeb9f279e196ee7225 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 26 21:00:08 2016 +0100 patch 7.4.1658 Problem: A plugin does not know when VimEnter autocommands were already triggered. Solution: Add the v:vim_did_enter variable.
author Christian Brabandt <cb@256bit.org>
date Sat, 26 Mar 2016 21:15:05 +0100
parents
children c07caeb90a35
line wrap: on
line source

" Tests for autocommands

func Test_vim_did_enter()
  call assert_false(v:vim_did_enter)

  " This script will never reach the main loop, can't check if v:vim_did_enter
  " becomes one.
endfunc