简体   繁体   English

Xterm,Vim,LXLE

[英]Xterm, Vim, LXLE

My problem is within Vim, when I type something that returns an error the box that returns the error message at the bottom of the window shows up as solid white. 我的问题是在Vim中,当我键入返回错误的内容时,在窗口底部返回错误消息的框显示为纯白色。 After researching nonstop I haven't been able to find this problem before, one main part of it is I don't know the technical name for this area of the vim window. 经过不间断的研究之后,我以前再也找不到这个问题,其中一个主要部分是我不知道vim窗口这一区域的技术名称。 I have gotten to the point where I believe it's a conflict between the xterm color scheme and vim. 我已经到了我相信这是xterm配色方案和vim之间冲突的地步。 If anyone has had this experience or has information that could help that would be great. 如果任何人有这种经验或有可以帮助的信息,那将是很好的。

I am using the distro LXLE which comes with Xterm and an already populated Xresources file by default. 我正在使用Xterm附带的发行版LXLE和默认情况下已经填充的Xresources文件。

That area at the bottom where error messages appear is the command-line . 出现错误消息的底部是命令行 Vim uses predefined highlighting groups for various output. Vim使用预定义的突出显示组显示各种输出。 The error messages use ErrorMsg (cp. :help hl-ErrorMsg ). 错误消息使用ErrorMsg:help hl-ErrorMsg )。

If you do :hi ErrorMsg , the problem should be reproducible. 如果执行:hi ErrorMsg ,则该问题应该是可重现的。 Can can either switch to a different colorscheme (check the full :hi output for any other bad color combinations), or, if the error message is the only problem, modify the highlight group, like this: 可以切换到其他颜色方案(检查完整的:hi输出是否有其他不良颜色组合),或者,如果错误消息是唯一的问题,请修改突出显示组,如下所示:

:hi ErrorMsg cterm=... ctermfg=... ctermbg=...

See :help highlight-term for an explanation. 请参阅:help highlight-term以获取解释。 To make that permanent, put the above command below the :colorscheme command in your ~/.vimrc . 要使其永久存在,请将上述命令放在~/.vimrc中的:colorscheme命令下面。

All of this assumes that your terminal is correctly set up; 所有这些都假定您的终端设置正确。 ie $TERM has a correct value and the number of colors available ( :set t_Co? ) is correct. $TERM有一个正确的值,并且可用的颜色数( :set t_Co? )是正确的。

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

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