From 706cee277a7eff80f086c9bc4f73d33580cbc9e6 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Fri, 16 Dec 2016 23:42:58 +0100 Subject: [PATCH] Add tab indicator for tabline when buffers are shown closes #1329 --- autoload/airline/extensions/tabline/buffers.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autoload/airline/extensions/tabline/buffers.vim b/autoload/airline/extensions/tabline/buffers.vim index 8d7ba42..31ad4da 100644 --- a/autoload/airline/extensions/tabline/buffers.vim +++ b/autoload/airline/extensions/tabline/buffers.vim @@ -97,6 +97,9 @@ function! airline#extensions#tabline#buffers#get() if s:show_tab_type call b.add_section_spaced('airline_tabtype', s:buffers_label) endif + if tabpagenr('$') > 1 + call b.add_section_spaced('airline_tabmod', printf('%s %d/%d', "tab", tabpagenr(), tabpagenr('$'))) + endif let s:current_bufnr = cur let s:current_tabline = b.build()