My work setup has several terminals open, at different heights (e.g. number of lines). How do I make Vim obtain that number of lines so that it can set itself accordingly with set lines?
I’m on bash with iTerm2.
Update: If my .vimrc doesn’t have a set lines statement, Vim should adjust itself by default.
Vim’s default behaviour is to take up all of the available height. Or 24 lines if it can’t get the information from the Terminal emulator according to
:h lines.set lines=52works in MacVim/GVim but it’s not really supposed to do anything useful in CLI Vim besides, eventually, changing the terminal’s window height.From my limited use of iTerm2 Vim behaves as it should. So do you want Vim to take less vertical space than what is available? Or more?