sponsor Vim development Vim logo Vim Book Ad

buffet.vim : A fast, easy to use buffer list plugin for switching and managing buffers.

 script karma  Rating 67/26, Downloaded by 3823  Comments, bugs, improvements  Vim wiki

created by
Sandeep CR
 
script type
utility
 
description
Please update the latest version of this plugin from the Mercurial repo at https://bitbucket.org/sras/buffet

When the plugin is invoked a horizontal window is opened with a list of buffers. the buffer numbers are also displayed along side.

Screenshot: http://i43.tinypic.com/33kadsx.png

Mercurial repo : https://bitbucket.org/sras/buffet

The user select a buffer by

1.Entering the buffer number using keyboard. Just start typing the number using keyboard.
The plugin will search for the buffer with that number and will keep going to the matching
buffers. Entered number will be shown at the top you can use backspace to edit it.When you
are in the desired buffer, press enter or any control keys that are
displayed at the bottom to execute any command available, on that buffer

Available commands

Enter(Replace current buffer)
o - (Make window fill with selected buffer )
h/v - (Horizontal/vertical Split)
g - (Go to buffer window if it is visible in a tab)
d - (Delete selected buffer)
t - (Open buffer in a new tab)
c - (Clear all the diff views)
m - Toggle detailed view for files
x - Close a window, in whatever tab it is displayed.
'-' - (Opens a vertical window showing difference of the selected buffer with the current buffer. The scrolling of the new window will be bound to the current buffer )

2.Move up or down using the navigation keys to reach the buffer line.

3.Double click on a buffer line using the mouse. Will immediately switch to
that buffer

If you are having any issues using the plugin or if you find any bugs, please let me know at sandeepcr2@gmail.com.
 
install details
Copy the file buffet.vim to the plugins directory.
The command to open the buffer list is

:Bufferlist

To make this plugin really useful you have to assign a shortcut key for it,
say you want F2 key to open the buffer list. you can add the following line in your .vimrc file.

map <F2> :Bufferlist<CR>
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
buffet.vim 2.10 2012-02-09 7.0 Sandeep CR     Added  buffer with no name to the list.

    Layout change for buffer list.Made columns to correctly align on top of each other.

    Removed the highlight for current window/buffer. Current window is enclosed in a > < instead

    Made a shorter version of path to show initially, Can toggle detail view using 'm' key.
buffet.vim 2.0 2012-01-26 7.0 Sandeep CR     Added support for multiple windows showing same buffer.

    Removed file type and file encoding information from buffer list.

    Fixed an issue when vim is invoked from command line with multiple arguments

    Added 'x' command to close a window in what ever tab it is displayed.

    Changed the 'h' command to 'hh' to prevent accidental opening when moving across the list.

buffet.vim 1.15 2012-01-25 7.0 Sandeep CR Added 't' command to open a buffer in a new tab.
Removed the delete restriction for buffers currently displayed.
Added 'c' command to clear all the diff views for currently displayed windows.
buffet.vim 1.10 2012-01-23 7.0 Sandeep CR Fixed a bug where it resets the global value of scroll offset to 0,Thanks to Dimitri.  Added '-' command for opening a vertical diff window showing diff with the current buffer
Fixed some minor issues.
buffet.vim 1.05 2012-01-21 7.0 Sandeep CR Added tab switching. If a buffer is displayed in another tab, then pressing 'g' will go to that tab and switch to the corresponding window.

Added file-encoding,file format,tab no and window no information for buffers in the list.

Bufferlist now opens at the very top with maximum width.

Fixed an issue with the 'g' navigation command
buffet.vim 1.0 2012-01-21 7.0 Sandeep CR Some highlighting fixes
ip used for rating: 34.236.152.203

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github