Set function on statusbar only if tagbar is avaialable
This commit is contained in:
1 parent
e1186e4140
commit
d68fcfa6dc
1 file changed
+4
-2
@@ -94,8 +94,10 @@ set statusline=%<%F " filename (fullpath)
|
||||
set statusline+=\ %h " indicator for help buffer
|
||||
set statusline+=%m " modified flag
|
||||
set statusline+=%r " readonly flag
|
||||
set statusline+=\ %{tagbar#currenttag('%s','','f')} " current tag
|
||||
set statusline+=\ %{tagbar#currenttagtype('(%s)','')} " current tag type
|
||||
if exists(':Tagbar')
|
||||
set statusline+=\ %{tagbar#currenttag('%s','','f')} " current tag
|
||||
set statusline+=\ %{tagbar#currenttagtype('(%s)','')} " current tag type
|
||||
endif
|
||||
set statusline+=%= " switch to the right
|
||||
set statusline+=%(%l,%c%V%) " line, column and virtual column
|
||||
set statusline+=\ %3p%% " percentage of the file
|
||||
|
||||
Reference in new issue
Block a user