Monday, June 17, 2013

Re: Warning about undefined background when exiting file

On Jun 17, 2:39 am, Pascal Hasko Bernhard
<pascal.hasko.bernh...@googlemail.com> wrote:
> Hey all,
>
> Everytime I quit a file viewed or edited by vi/vim I get the following
> message:
>
> 'Warning: Color name "BACKGROUND" is not defined'
>
> This happens only when in a graphical desktop environment, not on the
> 'real' console (CTRL+ALT+F2) though. I tried several desktops (MATE [my
> default], GNOME Shell, XFCE, KDE) as well as different terminal
> emulators (GNOME terminal, MATE terminal, Konsole, LXTerminal,
> UXTerm...). Always the same behavior. Then I set different color schemes
> for vim, no success. The same happens when changing the color scheme of
> the terminal emulator. This behavior afflicts all users, I logged in
> with different users, root is affected too.
>
> The locale settings are correct (en_US.UTF-, I checked to be sure that
> it's not case of a configuration file that cannot read the variable
> 'BACKGROUND'. I grep'ed all vim-files for the string 'BACKGROUND' to see
> whether there was something misconfigured here, no luck.
>
> It seems like I'm the only person having this problem, I could not find
> solution for the issue online.
>
> Vim is in version 7.3.905
>
> The following packages are installed:
>
> vim-core-7.3.905
> vim-7.3.905
> gvim-7.3.905 (I do not use the GUI, but have it installed nonetheless)
>
> Sabayon Linux 11 64bit (MATE desktop)
>
> Otherwise there are no issues with vi/vim. I can edit files without any
> problems, so in principle vi/vim seem work just fine. BTW: It doesn't
> matter whether I use VI or VIM, both complain about the background color
> being undefined.
>
> Any ideas?


Try opening vim with:

vim -U NONE

-u NONE ## No .vimrc, No .gvimrc, No plugin
-U NONE ## No .gvimrc
-u NORC ## No .vimrc, Load plugins

See...
:help gui-colors
:help -u

--
--
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/groups/opt_out.

No comments:

Post a Comment