简体   繁体   English

Ubuntu 端子中 Vim 的边缘未填充颜色方案

[英]Edges of Vim in Ubuntu terminal are not filled with colorscheme

As title says, I have problem with not filled edges of vim in terminal.正如标题所说,我在终端中没有填充 vim 的边缘有问题。 I use transparent terminal, gruvbox colorscheme in vim and as you can see on image - https://imgur.com/a/TamNIFu , bottom and the edge is not filled.我在 vim 中使用透明终端,gruvbox 颜色方案,正如您在图像上看到的 - https://imgur.com/a/TamNIFu ,底部和边缘未填充。

Can you somehow help me to fix it?你能以某种方式帮助我解决它吗? Thank you谢谢

When a program draws any colors in a terminal window, it can only draw for individual terminal cells.当程序在终端 window 中绘制任何 colors 时,它只能为单个终端单元格绘制。 This is most noticeable when you're drawing backgrounds, but it's true for foregrounds as well.这在您绘制背景时最为明显,但对于前景也是如此。

In your case, your terminal is not an exact number of terminal cells wide.在您的情况下,您的终端不是终端单元格的确切数量。 For example, the width of your terminal could be 128.25 cells.例如,终端的宽度可以是 128.25 个单元格。 All the programs in the terminal are going to know is that there's 128 columns, and the extra area is going to be inaccessible to any program using the terminal, and as such, it won't be able to be filled in by Vim or any other terminal program.终端中的所有程序都会知道有 128 列,使用终端的任何程序都将无法访问额外的区域,因此,Vim 或任何其他程序都无法填写其他终端程序。

You have some choices: you can either live with it, use gvim instead, or adjust your terminal emulator (assuming it has that functionality) to eliminate the border.你有一些选择:你可以接受它,使用gvim代替,或者调整你的终端仿真器(假设它具有该功能)以消除边界。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM