mirror of
https://github.com/vim-airline/vim-airline.git
synced 2025-12-06 12:14:24 +08:00
tabline: add command for skip to tenth tab/buffer.
This commit is contained in:
@@ -1117,10 +1117,11 @@ Note: Not displayed if the number of tabs is less than 1
|
||||
`buffer_idx_mode` allows 3 different modes to access buffers from the
|
||||
tabline. When enabled, numbers will be displayed in the tabline and
|
||||
mappings will be exposed to allow you to select a buffer directly.
|
||||
In default mode, when the variable is 1 Up to 11 mappings will be
|
||||
exposed. Note: Those mappings are not automatically created, vim-airline
|
||||
just exposes those `<Plug>AirlineSeelctTab` keys for you to map to a
|
||||
convenient key >
|
||||
In default mode, when the variable is 1 Up to 10 mappings will be
|
||||
exposed. Note: As 10 and 1 have same prefix, we use 0 to replace 10. So,
|
||||
<leader>0 will jump to tenth buffer. Those mappings are not automatically
|
||||
created, vim-airline just exposes those `<Plug>AirlineSeelctTab` keys
|
||||
for you to map to a convenient key >
|
||||
|
||||
let g:airline#extensions#tabline#buffer_idx_mode = 1
|
||||
nmap <leader>1 <Plug>AirlineSelectTab1
|
||||
@@ -1132,6 +1133,7 @@ Note: Not displayed if the number of tabs is less than 1
|
||||
nmap <leader>7 <Plug>AirlineSelectTab7
|
||||
nmap <leader>8 <Plug>AirlineSelectTab8
|
||||
nmap <leader>9 <Plug>AirlineSelectTab9
|
||||
nmap <leader>0 <Plug>AirlineSelectTab0
|
||||
nmap <leader>- <Plug>AirlineSelectPrevTab
|
||||
nmap <leader>+ <Plug>AirlineSelectNextTab
|
||||
<
|
||||
|
||||
Reference in New Issue
Block a user