diff --git a/autoload/airline/extensions/tabline/tabs.vim b/autoload/airline/extensions/tabline/tabs.vim index 6892d08..77f3760 100644 --- a/autoload/airline/extensions/tabline/tabs.vim +++ b/autoload/airline/extensions/tabline/tabs.vim @@ -55,9 +55,11 @@ function! airline#extensions#tabline#tabs#get() let val = '%(' if s:show_tab_nr if s:tab_nr_type == 0 - let val .= ' %{len(tabpagebuflist('.i.'))}' - else + let val .= (g:airline_symbols.space).'%{len(tabpagebuflist('.i.'))}' + elseif s:tab_nr_type == 1 let val .= (g:airline_symbols.space).i + else "== 2 + let val .= (g:airline_symbols.space).i.'.%{len(tabpagebuflist('.i.'))}' endif endif call b.add_section(group, val.'%'.i.'T %{airline#extensions#tabline#title('.i.')} %)') diff --git a/doc/airline.txt b/doc/airline.txt index 5099fe7..9507d04 100644 --- a/doc/airline.txt +++ b/doc/airline.txt @@ -437,9 +437,10 @@ eclim * configure filename match rules to exclude from the tabline. > let g:airline#extensions#tabline#excludes = [] < -* configure how numbers are calculated in tab mode. > +* configure how numbers are displayed in tab mode. > let g:airline#extensions#tabline#tab_nr_type = 0 " # of splits (default) let g:airline#extensions#tabline#tab_nr_type = 1 " tab number + let g:airline#extensions#tabline#tab_nr_type = 2 " splits and tab number < * enable/disable displaying tab number in tabs mode. > let g:airline#extensions#tabline#show_tab_nr = 1