Vim creates black edges in full screen in a graphical environment

Source: Internet
Author: User

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
  1. Modify the font or font size to make it an integer multiple of the width of the screen length.
  2. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.