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.
How make Vim fill Terminal window
color-schemeiterm2terminalvim
Related Topic
- Python – How to execute a program or call a system command
- Python – How to print colored text to the terminal
- Vim clear last search highlighting
- What’s a quick way to comment/uncomment lines in Vim
- How to do case insensitive search in Vim
- Git – How to make Git use the editor of the choice for commits
- How does the vim “write with sudo” trick work
- How to exit the Vim editor
Best Answer
You have only two solutions:
give your terminal emulator's background and Vim's background the same color,
or remove Vim's background color.
Vim, your shell and every command-line program divide the screen in a grid of which every cell is the size of a character. If the GUI window's size in pixels doesn't fit your shell's grid size you get that ugly padding.
Example:
Additionally, most terminal emulators add a default padding around the usable screen to increase legibility so you will never be able to make Vim really full screen when run in a terminal emulator.