소스 검색

Don't make Startify a scratch buffer

It's a real file buffer now, since that is what most plugins assume
anyway.

We also give it a proper name, "Startify", because after `buftype=` it
would be listed as "[No Name]" instead of "[Scratch]", which is arguably
confusing.

Closes #214.
Marco Hinz 9 년 전
부모
커밋
977ee633e5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      autoload/startify.vim

+ 1 - 1
autoload/startify.vim

@@ -54,7 +54,6 @@ function! startify#insane_in_the_membrane() abort
 
   setlocal
         \ bufhidden=wipe
-        \ buftype=nofile
         \ nobuflisted
         \ nocursorcolumn
         \ nocursorline
@@ -155,6 +154,7 @@ function! startify#insane_in_the_membrane() abort
   call cursor(s:firstline, 5)
   autocmd startify CursorMoved <buffer> call s:set_cursor()
 
+  silent file Startify
   set filetype=startify
   silent! doautocmd <nomodeline> User Startified
 endfunction