Super simple vim plugin to show the list of buffers in the command bar.
TODO
autocmdBufEnter*\ let &statusline='%{bufferline#refresh_status()}' .
\ bufferline#get_status_string('StatusLine', 'StatusLineNC')TODO
letg:bufferline_echo=1In tabline (using lightline.vim)
letg:bufferline_active_buffer_left=''letg:bufferline_active_buffer_right=''letg:bufferline_show_bufnr=0letg:bufferline_fname_mod=':~:.'letg:bufferline_pathshorten=1letg:lightline= {
\ 'tab': {
\ 'active': ['tabnum'],
\ 'inactive': ['tabnum']
\ },
\ 'tabline': {
\ 'left': [ ['tabs'], ['bufferline'] ],
\ 'right': [ ['fileencoding'] ]
\ },
\ 'component': {
\ 'bufferline': '%{MyBufferlineRefresh()}' . bufferline#get_status_string('TabLineSel', 'LightLineLeft_tabline_tabsel_1'),
\ 'fileencoding': '%{&fenc}',
\ }
\ }
function!MyBufferlineRefresh()
callbufferline#refresh_status()
let rlen =4*tabpagenr('$') +len(&fenc) +8callbufferline#trim_status_info(&columns- rlen)
return''endfunction$ git clone https://github.com/critiqjo/vim-bufferline ~/.vim/bundle/vim-bufferlineNeoBundle 'critiqjo/vim-bufferline'Plugin'critiqjo/vim-bufferline'
Plug 'critiqjo/vim-bufferline'
The original author was Bailey Ling, who was inspired by the buftabs script.
MIT License. Copyright (c) 2013 Bailey Ling.
