ubuntu - 如何在 Vim 中更改 Jellybeans 配色方案中某些文本对象的彩色背景?

标签 ubuntu terminal vim color-scheme

我曾经使用 gVim,但现在我正在切换到终端 Vim,并希望摆脱一些在某些文本下呈现的烦人的背景突出显示。以下是我正在谈论的一些示例:

enter image description here

enter image description here

我目前使用的 Vim 配色方案是 Jellybeans,我已将其文件放在 ~/.vim/colors/jellybeans.vim

我应该在该配色方案文件中更改什么以消除某些文本周围的背景突出显示?

最佳答案

红色和紫色背景上的文字可能是拼写 错误。您使用的配色方案未配置突出显示 拼写错误,所以默认的是事件的。

有四个高亮组负责拼写错误' 外观:SpellBadSpellCapSpellRareSpellLocal(参见 :help spell-quickstart).这些组的默认选项是 定义如下:

:hi SpellBad term=reverse ctermbg=224 gui=undercurl guisp=Red
:hi SpellCap term=reverse ctermbg=81 gui=undercurl guisp=Blue
:hi SpellRare term=reverse ctermbg=225 gui=undercurl guisp=Magenta
:hi SpellLocal term=underline ctermbg=14 gui=undercurl guisp=DarkCyan

您可以将这些组的突出显示设置更改为您的 喜欢,然后追加相应的:highlight命令 自定义配色方案文件。

请注意,也可以手动运行 :highlight 命令 并在飞行中体验外观的变化,找到合适的 颜色而无需重新加载整个配色方案文件。

关于ubuntu - 如何在 Vim 中更改 Jellybeans 配色方案中某些文本对象的彩色背景?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7561861/

相关文章:

python - 当输出保存在变量中时,为什么 .read() 命令会执行不同的操作

Bash keybinding with "bind"- 避免像 Vim 中的 noremap 那样递归

vim - 在没有 <c-> 和 i_ctrl_v 的情况下映射 GVim 中的控制键

python - bash on Ubuntu on windows Linux、文件夹识别和运行 Python 脚本

eclipse - Eclipse 在哪里存储有关开放视角等的信息?

regex - Awk 无法拆分大文件 (10Gb+)

linux - neofetch ascii Logo 如何确定使用哪种颜色?

linux - 配置 Apache 以允许禁止目录列表

python - StandardPaths : wrong ownership on runtime directory/run/user/1000, 1000 instead of 0...如何在fedora上解决

ruby-on-rails - 用于 Ruby 的 vim 中的全局 "Go to definition"?