From 250fe3ed128654f9c74855261bc102c098f8f667 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Thu, 25 Apr 2013 00:46:22 +0200 Subject: [PATCH] add option: g:startify_unlisted_buffer --- doc/startify.txt | 10 ++++++++++ plugin/startify.vim | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/startify.txt b/doc/startify.txt index a844f30..fa8e956 100644 --- a/doc/startify.txt +++ b/doc/startify.txt @@ -98,6 +98,16 @@ A list of files to bookmark. Those files will always be shown at the bottom of the start screen. +============- + + let g:startify_unlisted_buffer = 1 + +Some bad plugins like minibufexpl break, when there is no listed buffer. +People can set this variable to 0, to work around that. As a consequence the +start screen buffer won't be removed, even after triggering an action from the +start screen. + + ============================================================================== 4. Commands *startify-commands* diff --git a/plugin/startify.vim b/plugin/startify.vim index b52142b..717bef1 100644 --- a/plugin/startify.vim +++ b/plugin/startify.vim @@ -26,10 +26,13 @@ command! -nargs=? -bar -complete=customlist,startify#get_session_names SLoad cal " Function: s:start {{{1 function! s:start() abort setfiletype startify - setlocal nonumber nobuflisted buftype=nofile + setlocal nonumber buftype=nofile if v:version >= 703 setlocal norelativenumber endif + if get(g:, 'startify_unlisted_buffer', 1) + setlocal nobuflisted + endif call append('$', [' startify>', '', ' [e] ']) let cnt = 0