带GNU屏幕的Vim背景 [英] Vim background with gnu screen

查看:75
本文介绍了带GNU屏幕的Vim背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在vim的配色方案中遇到麻烦.当使用在GNU屏幕上启动的vim会话编辑文件时,文本背景无法正确呈现.在屏幕外的会话中,整个背景是灰色的(应该是灰色的).对于屏幕内的vim窗口,只有直接在文本后面的背景显示为灰色.其余的是黑色的.

I am having trouble with my colorscheme in vim. When editing a file using a vim session started in GNU screen, the text background is not rendered correctly. In a session outside screen, the entire background is gray (how it should be). For a vim window inside screen, only the background directly behind the text appears gray. The rest is black.

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

I have TERM set to xterm-256color in both my .cshrc and .screenrc. My .vimrc has set t_Co=256

我正在使用csh.

我正在通过cygwin连接.

推荐答案

[填写OP,请参见注释]

[filling in for the OP, see the comment]

OP发现了问题:

我需要进行以下设置:

I needed to have this set:

defbce "on"

这将强制刷新背景色.

This forces background colours to refresh.

更改背景色擦除设置.如果bce设置为"on",则通过擦除/插入/滚动/清除操作清除的所有字符将以当前背景色显示.否则,将使用默认背景色.被使用."

"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小时前

这篇关于带GNU屏幕的Vim背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆