From f6d1ffd39fa0cb3186b38911782c9de4c4e5dd67 Mon Sep 17 00:00:00 2001 From: gryf Date: Sun, 11 Dec 2016 10:11:05 +0100 Subject: [PATCH] Fix for tags on statusline --- vimrc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index 65d58f6..63b9d4c 100644 --- a/vimrc +++ b/vimrc @@ -94,10 +94,8 @@ set statusline=%<%F " filename (fullpath) set statusline+=\ %h " indicator for help buffer set statusline+=%m " modified flag set statusline+=%r " readonly flag -if exists(':Tagbar') - set statusline+=\ %{tagbar#currenttag('%s','','f')} " current tag - set statusline+=\ %{tagbar#currenttagtype('(%s)','')} " current tag type -endif +set statusline+=\ %{exists(':Tagbar')!=0?tagbar#currenttag('%s','','f'):''} " current tag +set statusline+=\ %{exists(':Tagbar')!=0?tagbar#currenttagtype('(%s)',''):''} " current tag type set statusline+=%= " switch to the right set statusline+=%(%l,%c%V%) " line, column and virtual column set statusline+=\ %3p%% " percentage of the file