From b6c528b6aa82986a0fdedb9c4f4d92d070f13527 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Sun, 28 Apr 2013 09:17:57 +0200 Subject: [PATCH] run startify at start only for 'vim' and 'gvim' Don't call Startify at start when using evim, view, etc. --- plugin/startify.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/startify.vim b/plugin/startify.vim index ff1d681..3d0c610 100644 --- a/plugin/startify.vim +++ b/plugin/startify.vim @@ -14,7 +14,10 @@ let g:startify_session_dir = resolve(expand(get(g:, 'startify_session_dir', augroup startify autocmd! - autocmd VimEnter * if !argc() && (line2byte('$') == -1) | call s:insane_in_the_membrane() | endif + autocmd VimEnter * + \ if !argc() && (line2byte('$') == -1) && (v:progname == 'vim' || v:progname == 'gvim') | + \ call s:insane_in_the_membrane() | + \ endif augroup END command! -nargs=? -bar -complete=customlist,startify#get_session_names SSave call startify#save_session()