The introduction of the best vim plugin: : Buffer Explorer / Browser

created by
jeff lanzarotta

script type

With bufexplorer, you can quickly and easily switch between buffers by using the one of the default public interfaces:

‘\be’ (normal open) or
‘\bs’ (force horizontal split open) or
‘\bv’ (force vertical split open)

Once the bufexplorer window is open you can use the normal movement keys (hjkl) to move around and then use or to select the buffer you would like to open. If you would like to have the selected buffer opened in a new tab, simply press either or ‘t’. Please note that when opening a buffer in a tab, that if the buffer is already in another tab, bufexplorer can switch to that tab automatically for you if you would like. More about that in the supplied VIM help.

Bufexplorer also offers various options including:
- Display the list of buffers in various sort orders including:
- Most Recently Used (MRU) which is the default
- Buffer number
- File name
- File extension
- Full file path name
- Delete buffer from list

For more about options, sort orders, configuration options, etc. please see the supplied VIM help.

install details
Simply unzip into a directory in your ‘runtimepath’, usually ~/.vim or c:\vimfiles, and restart Vim. This zip file contains plugin\bufexplorer.vim, and doc\bufexplorer.txt. See ‘:help add-local-help’ on how to add bufexplorer.txt to vim’s help system.

NOTE: Version 7.0.12 and above will ONLY work with 7.0 and above of Vim.
NOTE NOTE NOTE: If you have a version prior to 7.1.2 that contains an autoload\bufexplorer.vim file, please REMOVE the autoload\bufexlorer.vim AND the plugin\bufexplorer.vim files before installing a new version.

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 7.4.1 2013-10-16 7.3 jeff lanzarotta – First update related to Vim 7.4.
- I have been asked by several bufexplorer users to put the code on github so that the Vundle plugin could be used to make updates easier. The code can now be found on github at For those that use the Vundle plugin, you can add ‘Bundle ‘jlanzarotta/bufexplorer’ to your _vimrc or .vimrc file to get the latest version.
- Changed license text.
- Fixed issue with ‘hidden’. If ‘hidden’ is set, make sure that g:bufExplorerFindActive is set to 0. Otherwise, when using /bs or /bv, and selecting a buffer, the original buffer will be switched to instead of being opened in the newly created windows.
- Added new ‘b’ mapping when the bufExplorer window is opened. When ‘b’ is pressed, the user is prompted for the buffer number to switch to, and is is then switched to when is pressed. This allows for somewhat faster buffer switching instead of using the j and k keys or the mouse to select the buffer to switch to.
- Removed ‘set nolist’ from the Initialize() function as well as the restore of the ‘list’ setting in the CleanUp() function. These were causing issues when multiple new files were opened from the command line. Furthermore, there was really no reason, that I can remember, to why the ‘list’ setting was saved, modified, and restored anyways.
- Fixed issue with WinManager integration code not working correctly anymore.
- Brought back the xnoremap setup for the ‘d’ and ‘D’ keys. These were removed for some reason after version 7.2.8.
- Thanks to all the contributors and testers.
- If there are any issues you find or enhancements you would like, let me know.

Top Down