Tuesday, April 26, 2016

Re: E254?

Hi,

2016/4/27 Wed 2:03:44 UTC+9 Christian Brabandt wrote:
> Hi Meino.Cramer!
>
> On Di, 26 Apr 2016, Meino.Cramer@gmx.de wrote:
>
> > Christian Brabandt <cblists@256bit.org> [16-04-26 17:03]:
> > > Am 2016-04-26 05:10, schrieb Meino.Cramer@gmx.de:
> > > >Hi,
> > > >with the updates of yesterday (or the day before?) I got a lot of this
> > > >output, which wasn't there before:
> > > >line 16:
> > > >E254: Cannot allocate color none
> > > >E254: Cannot allocate color none
> > > >line 17:
> > > >E254: Cannot allocate color none
> > > >line 18:
> > > >E254: Cannot allocate color none
> >
> > <snip>
> >
> > > >E254: Cannot allocate color none
> > > >line 48:
> > > >E254: Cannot allocate color none
> > > >I didn't changed .vimrc and Co. ...
> > > >After spiiting out this, vim works fine...
> > > >How can I fix it?
> > >
> > > Do you use the new guicolor setting? What colorscheme are you using?
> > > Is the file rgb.txt in your $VIMRUNTIME available?
> > >
> > > Best,
> > > Christian
> > > --
> > > --
> > > You received this message from the "vim_use" maillist.
> > > Do not top-post! Type your reply below the text you are replying to.
> > > For more information, visit http://www.vim.org/maillist.php
> > >
> > > --- You received this message because you are subscribed to the Google
> > > Groups "vim_use" group.
> > > To unsubscribe from this group and stop receiving emails from it, send
> > > an email to vim_use+unsubscribe@googlegroups.com.
> > > For more options, visit https://groups.google.com/d/optout.
> > >
> >
> > Hi Christian,
> >
> > new gui-settings??? ;)
> > You are joking, man...vim? ***GUI***?
> > No way!
> > I am using vim on the console!
> > (all this with a big smile in my face! 8)
>
> Well, you might want to read :h 'guicolors' if you updated your Vim
> recently. You might want to tell us your version output additionally.
> Also please check, that a file $VIMRUNTIME/rgb.txt is available. If you
> previously compiled and installed your vim yourself, this file was not
> installed, but it is needed by the guicolors feature. You might want to
> check, if the 'guicolors' option has been set and where it is set using
> :verbose set guicolors? (it is not set by default)

The option name 'guicolors' is totally confusing.
It should be renamed to 'termguicolors' or something else as discussed in
this thread: https://groups.google.com/d/topic/vim_dev/q2LuLFueRbE/discussion


> > Or in more settled words:
> > No, I am not using gui-settings as far as I know.
> >
> > The colorscheme is a modificated one...I have attached it to
> > this posting...
>
> If it colornames such as DarkMagenta or Cornsilk and you are using Vim
> with 'guicolors' set in the console and you are missing
> $VIMRUNTIME/rgb.txt you will see such warnings.

I saw the E254 error even without setting 'guicolors', when I used
+termtruecolor enabled vim and rgb.txt was not installed. Colorscheme was desert.
Installing rgb.txt should fix the E254 error. However, I think it's better
to avoid E254 when 'guicolors' is not set and rgb.txt is not installed.

Regards,
Ken Takata

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: