Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting a maximum size for vertical windows in vim

Tags:

vim

editor

ide

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!

like image 227
rr. Avatar asked Oct 23 '25 18:10

rr.


1 Answers

You can do

:set winfixwidth

in the window that you want to stay the same.

See

:help winfixheight
:help winfixwidth
like image 146
davidscolgan Avatar answered Oct 26 '25 08:10

davidscolgan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!