rakr / vim-one

Adaptation of one-light and one-dark colorschemes for Vim
MIT License
1.99k stars 196 forks source link

gVim E254: Cannot allocate color #none #34

Closed konradx closed 7 years ago

konradx commented 7 years ago

Hi, I'm getting following errors with gVim on Linux

Error detected while processing function 23_X: line 25: E254: Cannot allocate color #none

After some investigation I found that changing following lines from call <sid>X('MatchParen', s:hue_5, 'none', 'underline') call <sid>X('MatchTag', s:hue_5, 'none', 'underline') to

call <sid>X('MatchParen', s:hue_5, '', 'underline') call <sid>X('MatchTag', s:hue_5, '','underline')`

fixes errors but gives me ugly background color. To temporarily fix that I've put following in my .vimrc hi MatchParen guibg=NONE

I believe initial error is caused by vim receiving #none instead of none as guibg argument.

IngoMeyer441 commented 7 years ago

Same here in terminal vim :(

rakr commented 7 years ago

Hi guys, Thanks for spotting this, this does not happen with Neovim. I just pushed a quick fix to address this issue. The idea is to make the MatchParen hightlight a little more subtle than it is, just bold red with underline and no specific background.

Let me know if this works as I can't test it myself.

konradx commented 7 years ago

Works for me, thanks @rakr