From 274341531f7dd86464b77524f002abbf5d8326d4 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 25 Nov 2015 06:00:37 +0100 Subject: nvim: init: fix test if fugitive is loaded MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Johannes Löthberg --- nvim/init.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvim/init.vim b/nvim/init.vim index efa2066..09a22f5 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -104,9 +104,9 @@ set statusline+=%#identifier# set statusline+=%r set statusline+=%* -"if neobundle#is_sourced('vim-fugitive') +if exists('g:loaded_fugitive') set statusline+=%{fugitive#statusline()} -"endif +endif " Show a warning if file format isn’t unix set statusline+=%#warningmsg# -- cgit v1.2.3-70-g09d2