tabline: do not show terminal buffers by default
This commit is contained in:
parent
fce8585239
commit
a60eabb82f
@ -100,7 +100,7 @@ endfunction
|
|||||||
function! airline#util#ignore_buf(name)
|
function! airline#util#ignore_buf(name)
|
||||||
let pat = '\c\v'. get(g:, 'airline#ignore_bufadd_pat', '').
|
let pat = '\c\v'. get(g:, 'airline#ignore_bufadd_pat', '').
|
||||||
\ get(g:, 'airline#extensions#tabline#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
|
return match(a:name, pat) > -1
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -331,7 +331,9 @@ section.
|
|||||||
Determines a pattern to ignore a buffer name for various things (e.g. the
|
Determines a pattern to ignore a buffer name for various things (e.g. the
|
||||||
tabline extension) or the read-only check. Default is
|
tabline extension) or the read-only check. Default is
|
||||||
`g:airline#extensions#tabline#ignore_bufadd_pat` (see below) or
|
`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*
|
*airline#extensions#tabline#exclude_buffers*
|
||||||
Buffer numbers to be excluded from showing in the tabline (similar to
|
Buffer numbers to be excluded from showing in the tabline (similar to
|
||||||
|
Loading…
x
Reference in New Issue
Block a user