Display buffers as tree in a separate window. In it you can preview any buffer or switch directly to it. Additionally, you can close a single buffer or all inside a directory tree.
-
Add the following configuration to your
.vimrc
.Plugin 'tklepzig/vim-buffer-navigator'
-
Install with
:BundleInstall
.
-
Add the following configuration to your
.vimrc
.NeoBundle 'tklepzig/vim-buffer-navigator'
-
Install with
:NeoBundleInstall
.
-
Add the following configuration to your
.vimrc
.Plug 'tklepzig/vim-buffer-navigator'
-
Install with
:PlugInstall
.
The buffer navigator can be toggled by using either of these:
- leader + b (Can be disabled by setting
let g:BufferNavigatorMapKeys = 0
) :BufferNavigatorToggle
Inside the buffer tree the following mappings exists:
Key | Function |
---|---|
o | Switch to selected buffer |
Return | Same as o |
s | Open selected buffer in split |
v | Open selected buffer in vertical split |
p | Open buffer in preview mode (buffer navigator window stays open) |
x | Close selected buffer or tree |
z | Toggle zoom (increase width of buffer navigator window to max width) |
r | Refresh buffer tree |
m | Toggle mode between tree and MRU |
You can view the full manual (including customization options) with :help buffer-navigator
.
Have a feature request or found a bug? Open an issue at https://github.com/tklepzig/vim-buffer-navigator/issues.