Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

vim: configure tagbar stl funcionality

  • Loading branch information...
commit b34364be563fce1193b00b838d03ca74d1ed189f 1 parent ddfa746
@majutsushi authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 vim/vimrc
View
12 vim/vimrc
@@ -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
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.