sponsor Vim development Vim logo Vim Book Ad

QuickBuf : Very small, clean but quick and powerful buffer manager!

 script karma  Rating 257/85, Downloaded by 5620  Comments, bugs, improvements  Vim wiki

created by
pal nart
script type
Vim plugin helps navigate and manipulate buffers
Maintainer: palnart <palnart@gmail.com>

Brief description:
While making the task of browsing and manipulating buffers visual and simple, QuickBuf also offers advanced abilities of dealing with buffers (ex: "unlisted" mode). It's unique among several other buffer managers for creating no dedicated buffer and defining no auto command, thus minimize its interference.

Give it a try and you may find it all you need to work with Vim's buffers!
Any bugs or suggestions, please mail to: palnart@gmail.com

+ Press the assigned hotkey to activate QuickBuf (default <F4>). It brings out a list of buffers that you can browse and give commands on! Some indicators in the list:
- * : the buffer being opened in the active window
- = : a buffer being opened in a window, but not active
- [+] : modifed buffer
+ Use k/j or <Up>/<Down> keys to select the buffer.
+ Press a key to give a command to the currently selected buffer
- d : delete buffer
- w : wipe out buffer
- s : open buffer in a new horizontally split window
- u : open buffer
- <enter> : open buffer and leave QuickBuf; if the buffer is already opened in a window, switch to that window.
+ d, w, and <enter> operations may fail (ex: delete a modified buffer), QuickBuf will inform you so that you can force them by preceding the above characters with an exclamation mark ('!'). Ex: !d, !w, !<enter>
+ Instead of moving the selection bar around to select a buffer, you can use a number to specify a buffer. For example: '2d' will delete the second buffer in the list. Try '3<enter>', '1w', '1!w'
+ Use 'l' key to toggle between LISTED and UNLISTED mode. Which mode QuickBuf enter first depends on the active buffer. While in UNLISTED mode, 'unlisted' buffers (the buffers you have deleted) are showed. Also:
- [+] indicates a loaded buffer
- 'd' command makes the selected buffer 'listed' again
+ Press <esc> key to leave QuickBuf
install details
+ Source it with ':so qbuf.vim' or simply put it in /plugin under Vim's folder.
+ To define hotkey for QuickBuf:
Define g:qb_hotkey before source qbuf.vim, ex:
let g:qb_hotkey = "<F3>"
Or put that line in your _vimrc profile. Default, key "<F4>" is used.
Whenever you change g:qb_hotkey, :so qbuf.vim again to update hotkey.

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
qbuf.vim 1.12 2009-02-03 7.0 pal nart ADD: key 'c' to close an already opened window.
ADD: checking vim's version to silently skip on older vim (less than 7.0). Thanks to Bernhard Walle.
qbuf.zip 1.11 2008-01-05 6.0 pal nart Changes:
   - Automatically select the active buffer
   - Fix the display problem related to Vim's option "lazyredraw"
qbuf.zip 1.1 2007-12-25 6.0 pal nart Changes:
- More stable, tolerant to malformed commands
- Add <up>/<down> key to navigate buffer list
- Add 's' command to open buffer in a new split window
- Deal with Vim's multiple window
- Improve: 'u' command automatically move select bar to the next buffer
- Add some decorations
qbuf.zip 1.01 2007-06-02 7.0 pal nart Minor fix:
Save and keystroke when user press <Enter> but error switching to another buffer, no need to wait a keystroke, just leave QuickBuf, error message still visible!
qbuf.zip 1.0 2007-06-02 7.0 pal nart Redesign, much added, much more feature rich!
quickbuf.zip 0.11 2007-06-02 7.0 pal nart Add a plus sign (+) to indicate modified buffers
Error message when buffer list too long to fit in Vim's shell more readable
qbuf.vim 0.1 2007-06-01 7.0 pal nart Initial upload
ip used for rating:

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.