gpt4 book ai didi

linux - 带有 gnu screen 的 Vim 背景

转载 作者:IT王子 更新时间:2023-10-29 00:24:46 24 4
gpt4 key购买 nike

我在 vim 中的配色方案有问题。使用在 GNU screen 中启动的 vim session 编辑文件时,文本背景无法正确呈现。在 screen 外的 session 中,整个背景都是灰色的(应该是这样)。对于 screen 内的 vim 窗口,只有文本正后方的背景显示为灰色。其余为黑色。

我在 .cshrc.screenrc 中都将 TERM 设置为 xterm-256color。我的 .vimrcset t_Co=256

我正在使用 csh

编辑:我正在通过 cygwin 进行连接。

最佳答案

[填写OP,见评论]

OP 发现了问题:

I needed to have this set:

defbce "on"

This forces background colours to refresh.

"Change background-color-erase setting. If bce is set to “on”, all characters cleared by an erase/insert/scroll/clear operation will be displayed in the current background color. Otherwise the default background color is used."

– 拉维 19 小时前

关于linux - 带有 gnu screen 的 Vim 背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14689925/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com