May 30
Better Buffer Management in vim
/ May 30, 2006
Are you still using :ls in vim to see your buffer list and move
around? There are a lot of buffer management scripts for vim, I
picked BufExplorer.
Here is how I configured it to make it most natural for me. I made it similar to vim's built-in command-line window (@q:@).
let g:bufExplorerDefaultHelp = 0 let g:bufExplorerSplitBelow = 1 let g:bufExplorerOpenMode = 1 let g:bufExplorerSplitHorzSize = 7
I currently have this mapping:
map <silent> <unique> <F2> :SBufExplorer<CR>
But I'm looking for something a bit easier to reach from home row.
Here is a list of the key bindings in the BufExplorer window:
| Key | Description |
|---|---|
| ? | Toggle Help |
| <cr> | Open buffer |
| S | Open buffer new split |
| d | Delete buffer |
| o | Toggle open mode (current window or split) |
| t | Toggle split mode |
| p | Toggle the split path mode |
| q | Back to current buffer |
| r | Reverse sort |