mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2025-12-06 17:24:23 +08:00
Add buffer_idx_mode to vim-airline.
Update documentation. Keep buffer index-id map a script scope variable.
This commit is contained in:
@@ -404,6 +404,17 @@ eclim <https://eclim.org>
|
||||
* enable/disable displaying tab type (far right)
|
||||
let g:airline#extensions#tabline#show_tab_type = 1
|
||||
|
||||
* enable/disable displaying index of the buffer.
|
||||
" When enabled, a map between buffer index and buffer number
|
||||
" will be maintained. Up to nine mappings will be defined to
|
||||
" allow switching to a buffer using its index easily.
|
||||
" The mappings have the form <Plug>AirlineSelectTab{x}
|
||||
" where x is a number from 1 to 9. One can defining mappings like this
|
||||
" nmap <leader>1 <Plug>AirlineSelectTab1
|
||||
" Note that buffering switching won't happen if the current buffer
|
||||
" is a NERDTree buffer.
|
||||
let g:airline#extensions#tabline#buffer_idx_mode = 1
|
||||
|
||||
* defines the name of a formatter for how buffer names are displayed. >
|
||||
let g:airline#extensions#tabline#formatter = 'default'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user