Skip to content

Latest commit

History

65 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

vim-bufferline

Super simple vim plugin to show the list of buffers in the command bar.

Screenshots

In statusline

TODO

Configuration:
autocmdBufEnter*\ let &statusline='%{bufferline#refresh_status()}' .
\ bufferline#get_status_string('StatusLine', 'StatusLineNC')

In command bar

TODO

Configuration:
letg:bufferline_echo=1

In tabline (using lightline.vim)

screenshot

Configuration:
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

Installation

  • pathogen

    $ git clone https://github.com/critiqjo/vim-bufferline ~/.vim/bundle/vim-bufferline
  • neobundle

    NeoBundle 'critiqjo/vim-bufferline'
  • vundle

    Plugin'critiqjo/vim-bufferline'
  • vim-plug

    Plug 'critiqjo/vim-bufferline'

Credits

The original author was Bailey Ling, who was inspired by the buftabs script.

License

MIT License. Copyright (c) 2013 Bailey Ling.

About

Simple vim plugin to display the list of buffers

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages