Reputation: 6644
When working with split windows, I often make use of the command to size all windows equally. However, I also use mini buffer explorer in a vertical window, which I want to keep to a maximum width of 25. Is there any way I can configure vim so that either the mini buffer explorer window does not get re-sized or it stays at a maximum width of 25?
Thanks!
Upvotes: 4
Views: 1838
Reputation: 11232
Here is a part of minibufexpl.vim
:
" If you would like a vertical explorer you can assign the column
" width (in characters) you want for your explorer window with the
" following .vimrc variable (this was introduced in 6.3.0):
"
" let g:miniBufExplVSplit = 20 " column width in chars
"
" IN HORIZONTAL MODE:
" It is now (as of 6.1.1) possible to set a maximum height for
" the -MiniBufExplorer- window. You can set the max height by
" letting the following variable in your .vimrc:
"
" let g:miniBufExplMaxSize = <max lines: defualt 0>
"
" setting this to 0 will mean the window gets as big as
" needed to fit all your buffers.
This should help to solve your problem.
Upvotes: 1
Reputation: 7728
You can do
:set winfixwidth
in the window that you want to stay the same.
See
:help winfixheight
:help winfixwidth
Upvotes: 7