parent
05572482b8
commit
1471330825
@ -164,7 +164,7 @@ function! s:get_number(index)
|
|||||||
endif
|
endif
|
||||||
let bidx_mode = get(g:, 'airline#extensions#tabline#buffer_idx_mode', 0)
|
let bidx_mode = get(g:, 'airline#extensions#tabline#buffer_idx_mode', 0)
|
||||||
if bidx_mode > 1
|
if bidx_mode > 1
|
||||||
return join(map(split(a:index+10, '\zs'), 'get(s:number_map, v:val, "")'), '')
|
return join(map(split(a:index+11, '\zs'), 'get(s:number_map, v:val, "")'), '')
|
||||||
else
|
else
|
||||||
return get(s:number_map, a:index+1, '')
|
return get(s:number_map, a:index+1, '')
|
||||||
endif
|
endif
|
||||||
@ -203,8 +203,8 @@ function! s:map_keys()
|
|||||||
exe printf('noremap <silent> <Plug>AirlineSelectTab%d :call <SID>select_tab(%d)<CR>', i, i-1)
|
exe printf('noremap <silent> <Plug>AirlineSelectTab%d :call <SID>select_tab(%d)<CR>', i, i-1)
|
||||||
endfor
|
endfor
|
||||||
else
|
else
|
||||||
for i in range(10, 99)
|
for i in range(11, 99)
|
||||||
exe printf('noremap <silent> <Plug>AirlineSelectTab%d :call <SID>select_tab(%d)<CR>', i, i-10)
|
exe printf('noremap <silent> <Plug>AirlineSelectTab%d :call <SID>select_tab(%d)<CR>', i, i-11)
|
||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
noremap <silent> <Plug>AirlineSelectPrevTab :<C-u>call <SID>jump_to_tab(-v:count1)<CR>
|
noremap <silent> <Plug>AirlineSelectPrevTab :<C-u>call <SID>jump_to_tab(-v:count1)<CR>
|
||||||
|
@ -110,8 +110,8 @@ function! airline#extensions#tabline#tabs#map_keys()
|
|||||||
exe printf('noremap <silent> <Plug>AirlineSelectTab%d :%dtabn<CR>', i, i)
|
exe printf('noremap <silent> <Plug>AirlineSelectTab%d :%dtabn<CR>', i, i)
|
||||||
endfor
|
endfor
|
||||||
else
|
else
|
||||||
for i in range(10, 99)
|
for i in range(11, 99)
|
||||||
exe printf('noremap <silent> <Plug>AirlineSelectTab%d :%dtabn<CR>', i, i-9)
|
exe printf('noremap <silent> <Plug>AirlineSelectTab%d :%dtabn<CR>', i, i-10)
|
||||||
endfor
|
endfor
|
||||||
endif
|
endif
|
||||||
noremap <silent> <Plug>AirlineSelectPrevTab gT
|
noremap <silent> <Plug>AirlineSelectPrevTab gT
|
||||||
|
Loading…
Reference in New Issue
Block a user