diff options
author | James McCoy <jamessan@jamessan.com> | 2016-11-14 16:16:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-14 16:16:18 -0500 |
commit | 0c799a8f10b345236efca08f51ffece0e1d1e85d (patch) | |
tree | 4556d12ec412b0ff6a24aca20171581bea8e92aa /runtime/doc | |
parent | 4539d867d491c9ca748f3d2de505092c4769824d (diff) | |
parent | 0b686e9b61c92e13c32f1bbc126586437be8aade (diff) | |
download | rneovim-0c799a8f10b345236efca08f51ffece0e1d1e85d.tar.gz rneovim-0c799a8f10b345236efca08f51ffece0e1d1e85d.tar.bz2 rneovim-0c799a8f10b345236efca08f51ffece0e1d1e85d.zip |
Merge pull request #5606 from jamessan/vim-7.4.1658
vim-patch:7.4.1658
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/autocmd.txt | 10 | ||||
-rw-r--r-- | runtime/doc/eval.txt | 4 |
2 files changed, 13 insertions, 1 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 76dd3c7d4c..4f23aee83d 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -940,7 +940,15 @@ VimEnter After doing all the startup stuff, including loading vimrc files, executing the "-c cmd" arguments, creating all windows and loading the buffers in them. - *VimLeave* + Just before this event is triggered the + |v:vim_did_enter| variable is set, so that you + can do: > + if v:vim_did_enter + call s:init() + else + au VimEnter * call s:init() + endif +< *VimLeave* VimLeave Before exiting Vim, just after writing the .shada file. Executed only once, like VimLeavePre. diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 5c704837d6..da52a8f078 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1765,6 +1765,10 @@ v:version Version number of Vim: Major version number times 100 plus version 5.0 and 5.1 may have a patch 123, but these are completely different. + *v:vim_did_enter* *vim_did_enter-variable* +v:vim_did_enter Zero until most of startup is done. It is set to one just + before |VimEnter| autocommands are triggered. + *v:warningmsg* *warningmsg-variable* v:warningmsg Last given warning message. It's allowed to set this variable. |