Running vim in the terminal or running Gvim will encounter this problem, when the window full screen, the left and right side of the border may appear, this border in the terminal vim is the terminal background color. Full-screen effect for spacevim+neovim+terminal
Reason
A full-screen app running in terminal is limited by how many rows the screen shows how many columns are fixed. As in the case of a normal window display terminal, when the window height is adjusted, the terminal can only be adjusted to an integer multiple of the row height. The horizontal direction is also, width can only be an integer multiple of the character width. And this character width and height are limited by font, font size, screen resolution. When the screen width height cannot be an integer multiple of the character width height, the system uses the terminal theme color to overwrite the rows that are not allocated.
Compromise Solution
- Modify the font or font size to make it an integer multiple of the width of the screen length.
- Modify the theme color so that the interface color with vim always, make the border look not obvious.
Reference: https://segmentfault.com/q/1010000002391030 http://tieba.baidu.com/p/3771662356?fid=1062479&pid= 74192521556
Vim creates black edges in full screen in a graphical environment