Browse Source

Make "-Vim" another valid v:progname

References #147.
Marco Hinz 11 năm trước cách đây
mục cha
commit
d3d5ea68c4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      plugin/startify.vim

+ 1 - 1
plugin/startify.vim

@@ -13,7 +13,7 @@ let g:loaded_startify = 1
 augroup startify
   if !get(g:, 'startify_disable_at_vimenter')
     autocmd VimEnter * nested
-          \   if !argc() && (line2byte('$') == -1) && (v:progname =~? '^[gmnq]\=vim\=x\=\%[\.exe]$')
+          \   if !argc() && (line2byte('$') == -1) && (v:progname =~? '^[-gmnq]\=vim\=x\=\%[\.exe]$')
           \ |   if get(g:, 'startify_session_autoload') && filereadable('Session.vim')
           \ |     source Session.vim
           \ |   else