Search code examples
vimterminalcolor-schemeiterm2

How make Vim fill Terminal window


When running Vim in a Terminal, the vim window does not fill the entire screen space, which is very irritating when the terminal background color radically differs from vim's. Admittedly, one might want to keep them somewhat in sync, but given that I don't want that, how can I make vim stretch across the entire window? The screenshot below illustrates the problem.

enter image description here


Solution

  • It looks like your terminal allows resizing in increments less than a single row/column.

    Vim, on the other hand, draws only complete rows or columns. The partially visible rows/columns in the terminal are therefore not being drawn when Vim displays its window.