Add buffer_idx_mode to vim-airline.

Update documentation.
Keep buffer index-id map a script scope variable.
This commit is contained in:
Yu Huang
2014-09-01 17:16:58 -07:00
parent 3eef719c4d
commit ae472d6716
2 changed files with 48 additions and 1 deletions

View File

@@ -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'