Skip to content

Commit

Permalink
vim: configure tagbar stl funcionality
Browse files Browse the repository at this point in the history
  • Loading branch information
majutsushi committed Dec 9, 2012
1 parent ddfa746 commit b34364b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vim/vimrc
Expand Up @@ -146,6 +146,8 @@ function! s:StatusLine(new_stl, type, current)
" No custom statusline is set, use new_stl
let &l:statusline = new_stl
endif

return &l:statusline
endfunction

" s:StatusLineColors() {{{2
Expand Down Expand Up @@ -358,6 +360,16 @@ augroup StatusLineHighlight
autocmd InsertEnter,CursorHoldI * call <SID>StatusLine((exists('b:stl') ? b:stl : g:default_stl), 'Insert', 1)
augroup END

" Tagbar {{{2
" TagbarStatuslineOther() {{{2
function! TagbarStatuslineOther(current)
return <SID>StatusLine((exists('b:stl') ? b:stl : g:default_stl), 'Normal', a:current)
endfunction

let g:tagbar_statusfuncs = {
\ 'other' : 'TagbarStatuslineOther'
\ }

" Functions {{{1

" UNIX helpers {{{2
Expand Down

0 comments on commit b34364b

Please sign in to comment.