我的 .vimrc 配置:
nmap <silent><F1> :NERDTreeToggle<CR>
nmap <silent><F2> :TMiniBufExplorer<CR>
let g:miniBufExplMapWindowNavVim = 1
let g:NERDTreeWinPos = "right"
首先看起来像:
--------------------------
| minibufexplorer | |
--------------------- |
| | |
| top | |
| | |
---------------------NERD|
| | |
| btm | |
| | |
--------------------------
当我按下F2键时,minibufexplorer被切换:
--------------------------
| | |
| | |
| top | |
| | |
---------------------NERD|
| | |
| btm | |
| | |
--------------------------
现在看起来一切都正常,但当我再次按下F2键并且minibufexplorer出现时,顶部窗口被重新调整大小了:
--------------------------
| minibufexplorer | |
--------------------- |
| top | |
---------------------NERD|
| | |
| | |
| | |
| btm | |
| | |
--------------------------
如果右侧没有nerdtree窗口,它将不会调整大小。那么当nerdtree打开时如何停止调整窗口大小呢? (顺便说一下:抱歉,我不能上传图片,因为我只有8个声望。)