Vim plugin providing a function intended as a tab component for lightline.vim.
Displays the number of windows / buffers open in a tab.
Inspired by a similar extensions built into vim-airline.
let g:lightline = {
\ 'tab_component_function': {
\ 'tabpagecount': 'lightline_tabpagecount#component',
\ },
\ 'tab': {
\ 'active': ['tabnum', 'filename', 'tabpagecount', 'modified'],
\ 'inactive': ['tabnum', 'filename', 'tabpagecount', 'modified'],
\ },
\}
" printf-compatible string that accepts two numerical values: number of windows
" and number of buffers (in that order).
let g:lightline_tabpagecount#format = '(w:%d,b:%d)'