Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
trusktr opened this issue Apr 9, 2013 · 7 comments
Closed

Comments

@trusktr
Copy link

trusktr commented Apr 9, 2013

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
Copy link
Owner

w0ng commented Apr 10, 2013

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

@w0ng
Copy link
Owner

w0ng commented Apr 25, 2013

Non-response. Closing

@w0ng w0ng closed this as completed Apr 25, 2013
@trusktr
Copy link
Author

trusktr commented Apr 26, 2013

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
Copy link

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

@trusktr trusktr mentioned this issue Jul 4, 2013
@w0ng w0ng reopened this Jul 28, 2013
@ncraike
Copy link

ncraike commented Aug 10, 2013

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
Copy link

fedemp commented Oct 1, 2013

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

@w0ng
Copy link
Owner

w0ng commented Dec 27, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants