如何更改VIM强调颜色
问题描述:
我是VIM colorscheme(danger.vim)的作者,我想改变一些我几乎看不到的颜色。如何更改VIM强调颜色
这是它的外观在Solarized:
这是外观在我的主题:
正如你所看到的,很难看强调在import sys
。我会让它们变得更浅蓝色,并且大胆。
我使用Syntastic插件主要与Pyflakes和JSLint集成。
我也使用Flux,可能是它更难以看清的原因。
答
好像Syntastic显示警告为拼写错误 ,所以我只需要定义:
SpellBad word not recognized |hl-SpellBad|
SpellCap word not capitalised |hl-SpellCap|
SpellRare rare word |hl-SpellRare|
SpellLocal wrong spelling for selected region |hl-SpellLocal|
在我的colorscheme文件中。
答
在你的色彩方案文件的位置:
hi Error guifg=NONE guibg=NONE gui=undercurl ctermfg=white ctermbg=red cterm=NONE guisp=#FF6C60 " undercurl color
更改guisp
到您想要的颜色后的部分。
即
hi Error guifg=NONE guibg=NONE gui=undercurl ctermfg=white ctermbg=red cterm=NONE guisp=#FFFFFF " undercurl color
将使下划线白色
编辑: 您可以通过改变gui=undercurl
大胆错误gui=bold,undercurl
谢谢,但错误已经是红色,这是警告,请参阅我的答案了解更多详情。 – igorgue