"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " xTabline - Reduced version for vim-airline " Plugin: https://github.com/mg979/vim-xtabline " MIT License Copyright (C) 2018-2019 Gianmaria Bajo " tabpagecd: " expanded version by mg979 " MIT License Copyright (C) 2012-2013 Kana Natsuno " MIT License Copyright (C) 2018-2019 Gianmaria Bajo """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" function! airline#extensions#tabline#xtabline#init() let s:state = 0 " initialize mappings call airline#extensions#tabline#xtabline#maps() """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Variables """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let g:loaded_xtabline = 1 let s:most_recent = -1 let s:xtabline_filtering = 1 let t:xtl_excluded = get(g:, 'airline#extensions#tabline#exclude_buffers', []) let t:xtl_accepted = [] let g:xtabline_include_previews = get(g:, 'xtabline_include_previews', 1) let g:xtabline_alt_action = get(g:, 'xtabline_alt_action', "buffer #") """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Autocommands """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" augroup plugin-xtabline autocmd! autocmd TabNew * call s:Do('new') autocmd TabEnter * call s:Do('enter') autocmd TabLeave * call s:Do('leave') autocmd TabClosed * call s:Do('close') autocmd BufEnter * let g:xtabline_changing_buffer = 0 autocmd BufAdd,BufDelete,BufWrite * call airline#extensions#tabline#xtabline#filter_buffers() augroup END """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Commands """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" com! XTabReopen call airline#extensions#tabline#xtabline#reopen_last_tab() endfunction """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Mappings """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" function! airline#extensions#tabline#xtabline#maps() if !exists('g:xtabline_disable_keybindings') fun! s:mapkeys(keys, plug) if empty(mapcheck(a:keys)) && !hasmapto(a:plug) silent! execute 'nmap '.a:keys.' '.a:plug endif endfun call s:mapkeys('','XTablineToggleTabs') call s:mapkeys('','XTablineToggleFiltering') call s:mapkeys('','XTablineSelectBuffer') call s:mapkeys(']l','XTablineNextBuffer') call s:mapkeys('[l','XTablinePrevBuffer') call s:mapkeys('tr','XTablineReopen') endif nnoremap