tabline: re-map tabline keys

fixes #1753
This commit is contained in:
Christian Brabandt 2018-07-13 21:33:03 +02:00
parent db45cdd994
commit 821372b9cf
No known key found for this signature in database
GPG Key ID: F3F92DA383FDDE09

View File

@ -101,7 +101,7 @@ function! airline#extensions#tabline#tabs#get()
endfunction
function! airline#extensions#tabline#tabs#map_keys()
if exists("s:airline_tabline_map_key")
if maparg('<Plug>AirlineSelectTab1', 'n') is# ':1tabn<CR>'
return
endif
noremap <silent> <Plug>AirlineSelectTab1 :1tabn<CR>
@ -116,7 +116,6 @@ function! airline#extensions#tabline#tabs#map_keys()
noremap <silent> <Plug>AirlineSelectPrevTab gT
" tabn {count} goes to count tab does not go {count} tab pages forward!
noremap <silent> <Plug>AirlineSelectNextTab :<C-U>exe repeat(':tabn\|', v:count1)<cr>
let s:airline_tabline_map_key = 1
endfunction
function! airline#extensions#tabline#tabs#tabnr_formatter(nr, i)