我想不出任何基于 Tab 的缓冲区浏览器,但 vimscript 有很多函数可以跟踪缓冲区 (:he function-list) 。我只是把它搞砸了。它可能会让你得到你想要的。它只是跟踪 vim 字典中的选项卡。您需要充实 :TabExplorer 函数或将过滤后的列表(即 g:TabExplorer[tabpagenr()])修补到 minibuf 插件中
将它保存为 ~/.vim/plugin/tabexplorer.vim 并在启动时获取它。
let g:TabExplorer = {}
func! StoreBufTab()
if !has_key(g:TabExplorer, tabpagenr())
let g:TabExplorer[tabpagenr()] = []
endif
if index(g:TabExplorer[tabpagenr()], bufname("%")) == -1 && bufname("%") != ""
call add (g:TabExplorer[tabpagenr()],bufname("%"))
endif
endfunc
func! DisplayTabExplorer()
4split
enew
call append(".",g:TabExplorer[tabpagenr()])
endfunc
au BufEnter * call StoreBufTab()
command! TabExplorer call DisplayTabExplorer()