我想知道是否可以更改 mytheme.vim
颜色方案文件中的 rubyLocalVariableOrMethod
颜色。
我目前正在扩展我非常喜欢的 ir_black 主题,并且想要覆盖某些关键字的一些颜色。
这是我当前的配色方案,从 ir_black
扩展而来。
runtime colors/ir_black.vim
let g:colors_name = "mytheme"
hi rubyDefine ctermfg=darkblue
hi rubyFunction ctermfg=lightblue
hi rubyConstant ctermfg=lightblue
hi rubyString ctermfg=green
hi rubyInteger ctermfg=red
hi rubyFloat ctermfg=red
hi rubyLocalVariableOrMethod ctermfg=white
除了 hi rubyLocalVariableOrMethod ctermfg=white
之外,一切都按预期工作。颜色仍然看起来像灰色。我认为ir_black
可能设置了一个我的rubyLocalVariableOrMethod
无法覆盖的特定值,但我没有找到任何东西。
也许在 VIM 方面更有经验的人可以帮助我解决这个问题。
这是我正在使用的 ir_black
的链接:
https://github.com/wgibbs/vim-irblack/blob /master/colors/ir_black.vim
这是我正在使用的 ruby
语法文件:
https://github.com/vim-ruby/vim -ruby/blob/master/syntax/ruby.vim
任何帮助弄清楚为什么我无法覆盖灰色
外观的颜色将不胜感激!
I was wondering whether it's possible to change the rubyLocalVariableOrMethod
color in a mytheme.vim
color scheme file.
I am currently extending the ir_black
theme which I really like, and want to overwrite just a few a colors for certain keywords.
This is my current color scheme that extends from ir_black
.
runtime colors/ir_black.vim
let g:colors_name = "mytheme"
hi rubyDefine ctermfg=darkblue
hi rubyFunction ctermfg=lightblue
hi rubyConstant ctermfg=lightblue
hi rubyString ctermfg=green
hi rubyInteger ctermfg=red
hi rubyFloat ctermfg=red
hi rubyLocalVariableOrMethod ctermfg=white
Everything works as expected except for hi rubyLocalVariableOrMethod ctermfg=white
. The color remains something that looks like gray
. I thought perhaps ir_black
was setting a certain value that my rubyLocalVariableOrMethod
could not overwrite, but I failed to find anything.
Perhaps someone more experienced in VIM could help me out with this.
This is the link to the ir_black
I'm using:
https://github.com/wgibbs/vim-irblack/blob/master/colors/ir_black.vim
This is the ruby
syntax file I am using:
https://github.com/vim-ruby/vim-ruby/blob/master/syntax/ruby.vim
Any help figuring out why I'm failing to overwrite the gray
-looking color would be much appreciated!
发布评论
评论(2)
结果我的终端 (
iTerm2
) 的Foreground
属性未设置为“全白”。没想到这会产生任何影响,但很高兴知道,以防其他人遇到这个问题。Turns out my Terminal (
iTerm2
)'sForeground
property wasn't set to "full white". Didn't expect that to have any influence, but good to know in case anyone else runs in to this gotcha.我的实际上是在语法突出显示插件中“显示透明”。
我把它去掉了,魔法!
Mine was actually "display transparent" in the syntax highlighting plugin.
I removed it and magic!