Selaa lähdekoodia

Fix :enew handling (again)

fugitive is run at VimEnter and for new buffers that are associated with
files.

Now fugitive commands will be available after start (in the Startify screen),
but it won't work after calling :Startify, since fugitive is designed that
way.

References #33.
Marco Hinz 10 vuotta sitten
vanhempi
sitoutus
36ff6db44a
2 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 0 1
      autoload/startify.vim
  2. 1 1
      plugin/startify.vim

+ 0 - 1
autoload/startify.vim

@@ -50,7 +50,6 @@ function! startify#insane_in_the_membrane() abort
     endfor
   endif
 
-  enew
   setlocal
         \ bufhidden=wipe
         \ buftype=nofile

+ 1 - 1
plugin/startify.vim

@@ -49,6 +49,6 @@ command! -nargs=? -bar -complete=customlist,startify#session_list SSave   call s
 command! -nargs=? -bar -complete=customlist,startify#session_list SLoad   call startify#session_load(<f-args>)
 command! -nargs=? -bar -complete=customlist,startify#session_list SDelete call startify#session_delete(<f-args>)
 command! -nargs=0 -bar SClose call startify#session_close()
-command! -nargs=0 -bar Startify call startify#insane_in_the_membrane()
+command! -nargs=0 -bar Startify enew | call startify#insane_in_the_membrane()
 
 nnoremap <silent><plug>(startify-open-buffers) :<c-u>call startify#open_buffers()<cr>