w0ng / vim-hybrid

A dark color scheme for Vim
1.48k stars 234 forks source link

Warnings after adding the colors to ~/.Xresources when exiting vim. #3

Closed trusktr closed 10 years ago

trusktr commented 11 years ago

After adding the stuff to ~/.Xresources like it says in the README, everytime I exit vim I see this message:

Warning: Color name "t_background" is not defined

w0ng commented 11 years ago

Which OS and terminal are you using? Paste your $HOME/.Xresources file.

w0ng commented 11 years ago

Non-response. Closing

trusktr commented 11 years ago

Sorry about that. I'm busy with school.

I see this warning in xterm. I don't see it in the linux terminal or in kmscon.

┌─[20:20:26/starlancer/trusktr/~]
└─╼ cat ~/.Xresources 
! Hybrid Terminal Colours
! vim: ft=xdefaults

! Tomorrow-Night Palette
#define t_background #1D1F21
#define t_current_line #282A2E
#define t_selection #373B41
#define t_foreground #C5C8C6
#define t_comment #707880
#define t_red #CC6666
#define t_orange #DE935F
#define t_yellow #F0C674
#define t_green #B5BD68
#define t_aqua #8ABEB7
#define t_blue #81A2BE
#define t_purple #B294BB

*background: t_background
*foreground: t_foreground
! black
*color0: t_current_line
*color8: t_selection
! red
*color1: #A54242
*color9: t_red
! green
*color2: #8C9440
*color10: t_green
! yellow
*color3: t_orange
*color11: t_yellow
! blue
*color4: #5F819D
*color12: t_blue
! magenta
*color5: #85678F
*color13: t_purple
! cyan
*color6: #5E8D87
*color14: t_aqua
! white
*color7: t_comment
*color15: t_foreground
jonas-maj commented 11 years ago

Same issue for me. Using Ubuntu 13.04, Gnome-Terminal and my ~/.Xresources file is same as the above poster.

ncraike commented 11 years ago

Not a vim-hybrid user, but stumbled across this while trying to solve the same issue: it seems latest Ubuntus have /etc/gdm/Xsession configured to load ~/.Xresources with the -nocpp flag, which disables the #define statements. See http://ubuntuforums.org/showthread.php?t=1387051

fedemp commented 11 years ago

So the solution would be running xrdb -merge .Xresources before opening the terminal.

w0ng commented 10 years ago

I've updated the gist to not use #define macro