my .vimrc setting:
nmap <silent><F1> :NERDTreeToggle<CR>
nmap <silent><F2> :TMiniBufExplorer<CR>
let g:miniBufExplMapWindowNavVim = 1
let g:NERDTreeWinPos = "right"
first it looks like:
--------------------------
| minibufexplorer | |
--------------------- |
| | |
| top | |
| | |
---------------------NERD|
| | |
| btm | |
| | |
--------------------------
next when i press F2, minibufexplorer was toggled:
--------------------------
| | |
| | |
| top | |
| | |
---------------------NERD|
| | |
| btm | |
| | |
--------------------------
right now it seen like everything is ok, but when i press F2 again and minibufexplorer show up then the top window was resized:
--------------------------
| minibufexplorer | |
--------------------- |
| top | |
---------------------NERD|
| | |
| | |
| | |
| btm | |
| | |
--------------------------
If there is no nerdtree window at the right, it will not resize. So how to stop resizing window when nerdtree is open? (btw: sorry, I can't upload pics cuz i only have 8 reputation.)
The problem is on line 450 of minibufexpl.vim: in the function
StartExplorer
, you will findset noequalalways
. From:help equalalways
:This is part of MiniBufExplorer and if you want it to behave differently you will either have to change it yourself or submit an issue to the author.