From 977ee633e5d8b6ea05d2c88ec06f6b7e8d67fcfb Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Wed, 1 Jun 2016 00:42:38 +0200 Subject: [PATCH] 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. --- autoload/startify.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index 93b2839..8275476 100644 --- a/autoload/startify.vim +++ b/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 call s:set_cursor() + silent file Startify set filetype=startify silent! doautocmd User Startified endfunction