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.
This commit is contained in:
parent
8585dd577a
commit
977ee633e5
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue