Created
December 19, 2011 11:01
-
-
Save saihoooooooo/1496652 to your computer and use it in GitHub Desktop.
my guitabline
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
autocmd MyAutoCmd GUIEnter * set guitablabel=%t%{GetTabModified()}\ [b:%{GetBufferTabLength()}] | |
function! GetTabModified() | |
for bufnr in tabpagebuflist(v:lnum) | |
if getbufvar(bufnr, "&modified") | |
return ' [+]' | |
endif | |
endfor | |
return '' | |
endfunction | |
function! GetBufferTabLength() | |
return len(filter(keys(t:unite_buffer_dictionary), 'buflisted(v:val + 0)')) | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment