sponsor Vim development Vim logo Vim Book Ad

PopupBuffer.vim : Vim global plugin for selecting buffer from PopUp menu

 script karma  Rating 34/16, Downloaded by 2006    Comments, bugs, improvements  Vim wiki

created by
Gontran BAERTS
script type
This script is an adaptation of the default list buffer menu from menu.vim file. With mousefocus on and horizontally splited windows, it's very difficult to select an other buffer for the bottom window from the Buffer menu :). With the PopupBuffer script, right-click on the bottom window and select an other buffer from the Buffers submenu.
install details
Requires to launch Vim with GUI mode. Put setmousemodel=popup or set mousemodel=popup_setpos to your .vimrc file. Copy this script to your ~/.vim/plugin directory, et voilą !

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
PopupBuffer.vim 1.1.1 2001-11-14 6.0 Gontran BAERTS - Fix stupid bug in PBAdd() function. Directories were added to popup buffers menu and never removed.
PopupBuffer.vim 1.1 2001-11-13 6.0 Gontran BAERTS Vim global plugin for selecting buffer from PopUp menu.
Updates in version 1.1 :
- Allow to control the menu item format with popupBufferPattern global variable. Use %F for full file path, %f for file name, %p for file path, and %n for buffer number.
For example:
let g:popupBufferPattern = "Select %f (%n) from %p directory"
- Fix unremoved deleted buffers from menu
- Improve addition of new item to menu. Don't add all buffers each time.
PopupBuffer.vim 1.0 2001-11-02 6.0 Gontran BAERTS 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.
SourceForge.net Logo