Sometimes (I can't reproduce it reliably), after opening a tab, the height of my command line becomes excessively big.When it begins, the buffer displayed in the first newly created tab has only 10 lines. The buffers displayed in the subsequently created tabs have only 3 lines. All the rest is taken by the command line.I've found 4 ways to make the command line take only one line again.Switching to another tab and coming back (gt, gT)  Creating a split and closing it (:sp, :q)  Maximizing the window (<C-w> + _)Dragging the status line to the bottom of the screen with the mouseAfter that, cycling between the tabs doesn't change the command line height.However, as soon as I close one, the command line of the tab which gains the focus becomes high again. I usually hit <C-w> + _, which fixes the height until I open or close a tab.It only concerns a new tab, or the first tab which gains the focus after closing another one.The value of my 'cmdheight' option is 1, 'cmdwinheight' is 7 and 'winheight' is 999.If I can't find the cause, maybe I will add an autocmd (something like au TabEnter * wincmd _), but before doing that, is there a way to find what is causing the command line height to be changed when I sometimes open or close a tab ?
How to find what is causing the command line height to be changed after opening / closing a tab?
command line;vim windows
To find where an option was last set, use :verbose set <option>?. In this case,:verbose set cmdheight?See:help :verbose-cmd