tabline: do not show terminal buffers by default

This commit is contained in:
Christian Brabandt 2018-09-20 10:25:47 +02:00
parent fce8585239
commit a60eabb82f
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09
2 changed files with 4 additions and 2 deletions

View File

@ -100,7 +100,7 @@ endfunction
function! airline#util#ignore_buf(name)
let pat = '\c\v'. get(g:, 'airline#ignore_bufadd_pat', '').
\ get(g:, 'airline#extensions#tabline#ignore_bufadd_pat',
\ 'gundo|undotree|vimfiler|tagbar|nerd_tree|startify')
\ 'gundo|undotree|vimfiler|tagbar|nerd_tree|startify|!')
return match(a:name, pat) > -1
endfunction

View File

@ -331,7 +331,9 @@ section.
Determines a pattern to ignore a buffer name for various things (e.g. the
tabline extension) or the read-only check. Default is
`g:airline#extensions#tabline#ignore_bufadd_pat` (see below) or
`'gundo|undotree|vimfiler|tagbar|nerd_tree|startify'` if it is unset.
`'gundo|undotree|vimfiler|tagbar|nerd_tree|startify|!'` if it is unset.
The "!" prevents terminal buffers to appear in the tabline.
*airline#extensions#tabline#exclude_buffers*
Buffer numbers to be excluded from showing in the tabline (similar to