2011-09-05 85 views
3

我是VIM colorscheme(danger.vim)的作者,我想改变一些我几乎看不到的颜色。如何更改VIM强调颜色

这是它的外观在Solarized:

enter image description here

这是外观在我的主题:

enter image description here

正如你所看到的,很难看强调import sys。我会让它们变得更浅蓝色,并且大胆。

我使用Syntastic插件主要与Pyflakes和JSLint集成。

我也使用Flux,可能是它更难以看清的原因。

回答

3

好像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文件中。

3

在你的色彩方案文件的位置:

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

+0

谢谢,但错误已经是红色,这是警告,请参阅我的答案了解更多详情。 – igorgue