PopupBuffer.vim : Vim global plugin for selecting buffer from PopUp menu
| script karma
Downloaded by 1813
Comments, bugs, improvements
script versions (upload new version)
|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.|
|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ą !|
Click on the package to download.
ip used for rating: 126.96.36.199
||- Fix stupid bug in PBAdd() function. Directories were added to popup buffers menu and never removed.
||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.
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.