From a4d663ebb9c0b8fe998ac23bedbf8339b742bf3c Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Mon, 25 Mar 2019 12:15:58 +0100 Subject: [PATCH] Batchmode: disable batchmode on VV etc. Also indicate it with a message when the batchmode is turned off. --- autoload/startify.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autoload/startify.vim b/autoload/startify.vim index ae0a64a..b5c3c8d 100644 --- a/autoload/startify.vim +++ b/autoload/startify.vim @@ -844,8 +844,8 @@ endfunction " Function: #set_batchmode {{{1 function! startify#set_batchmode(batchmode) abort - let s:batchmode = a:batchmode - echomsg 'Batchmode: '. s:batchmode + let s:batchmode = (a:batchmode == s:batchmode) ? '' : a:batchmode + echo empty(s:batchmode) ? 'Batchmode off' : 'Batchmode: '. s:batchmode endfunction " Function: s:set_mark {{{1