vim-plugin-minibufexpl icon indicating copy to clipboard operation
vim-plugin-minibufexpl copied to clipboard

g:miniBufExplSplitToEdge=0 doesn't work

Open noscript opened this issue 12 years ago • 2 comments

When I try to toggle MBE in vertical mode when being in e.g. NERDTree or TagBar buffer I would expect MBE to appear in a new split above (or below with let g:miniBufExplBRSplit = 1). Instead it opens in a new vertical split on the very edge of the VIM window.

This is the MBE config I use:

let g:miniBufExplVSplit = 20 " doesn't make sense when setting g:miniBufExplSplitToEdge=0
let g:miniBufExplBRSplit = 0
let g:miniBufExplSplitToEdge = 0

noscript avatar Aug 07 '13 15:08 noscript

Do you expect a vertical split or a horizontal one? If g:miniBufExplVSplit is greater than 0, it means a vertical split. If you want a horizontal split, then you should not touch g:miniBufExplVSplit variable.

weynhamz avatar Aug 08 '13 05:08 weynhamz

Sorry for confusion. I want a horizontal split but also that MBE would list buffers in vertical mode, separated by \n. I want to achieve this kind of layout:

+----------+---------------------------------------+
|          |                                       | 
|          |                                       | 
| NERDTree |           Windows                     | 
|          |                                       | 
|          |                                       | 
|          |                                       | 
+----------+                                       |
|   MBE    |                                       | 
|[buffer1] |                                       | 
|[buffer2] |                                       | 
|[buffer3] |                                       | 
|          |                                       | 
|          |                                       | 
|          |                                       | 
|          |                                       | 
|          |                                       | 
+----------+---------------------------------------+

Unsetting g:miniBufExplVSplit indeed makes a horizontal split but it also lists buffers horizontally separated with spaces. So I would like to have another option independent from g:miniBufExplVSplit to specify which way to list buffers.

noscript avatar Aug 08 '13 08:08 noscript