From 34436b8da54fb3f14475909fb364cb1760ffe855 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Sun, 4 Aug 2013 18:08:57 +0200 Subject: [PATCH] Remove VimEnter event after execution --- plugin/startify.vim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugin/startify.vim b/plugin/startify.vim index ab30079..2550c29 100644 --- a/plugin/startify.vim +++ b/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()