mirror of
https://github.com/vim-airline/vim-airline.git
synced 2026-03-05 14:44:15 +08:00
This function simply returns the current tabnumber followed by the number of buffers in the current tabpage. The previous one either was broken long ago or did not work as expected. fixes #2616
11 lines
302 B
VimL
11 lines
302 B
VimL
" MIT License. Copyright (c) 2017-2021 Christian Brabandt et al.
|
|
" vim: et ts=2 sts=2 sw=2
|
|
|
|
scriptencoding utf-8
|
|
|
|
function! airline#extensions#tabline#formatters#tabnr#format(nr, buflist)
|
|
let spc=g:airline_symbols.space
|
|
|
|
return printf("%s %d/%d", spc, a:nr, len(tabpagebuflist(a:nr)))
|
|
endfunction
|