Ver código fonte

Remove VimEnter event after execution

Marco Hinz 12 anos atrás
pai
commit
34436b8da5
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      plugin/startify.vim

+ 3 - 2
plugin/startify.vim

@@ -10,10 +10,11 @@ let g:loaded_startify = 1
 
 augroup startify
   autocmd!
-  autocmd VimEnter *
+  autocmd startify VimEnter *
         \ if !argc() && (line2byte('$') == -1) && (v:progname =~? '^[gm]\=vim\%[\.exe]$') |
         \   call startify#insane_in_the_membrane() |
-        \ endif
+        \ endif |
+        \ autocmd! startify VimEnter
 augroup END
 
 command! -nargs=? -bar -complete=customlist,startify#session_list SSave   call startify#session_save(<f-args>)