itchyny / calendar.vim

A calendar application for Vim
MIT License
1.97k stars 73 forks source link

Days of week are hidden except sunday/saturday when colors workaround/problem6 is followed #59

Closed dtrckd closed 10 years ago

dtrckd commented 10 years ago

Under bash...

itchyny commented 10 years ago

What do you mean? I don't get what you are saying. Please paste a screenshot.

dtrckd commented 10 years ago

All right, I hope the screenshot will be more expressive. screenshot

itchyny commented 10 years ago

What happens when you add set t_Co=256 to your vimrc?

dtrckd commented 10 years ago

It's strange, I get the result of my screenshot above when I set the t_Co=256 in my vimrc, whatever the condition " if !has('gui_running') " in vimrc or the "export TERM=xterm-256color" in bashrc, which by the way has no effect for me.

In the other hand, if t_Co is not set in vimrc, but after launching Calendar in vim, by doing :set t_Co=256, i get back days of week, but their're not highlilted. But if, for example, I open a new tab I loose again the days, and setting t_Co, don't change the situation anymore, unless exiting vim and repeating this....

Enrico68 commented 10 years ago

Same problem even for me. Linux (Arch).

dtrckd commented 10 years ago

It seems that the week's days are not visible because they are black and hilighted black. Maybe it should be good to have them in white...

itchyny commented 10 years ago

What does :hi CalendarDayTitle return?

dtrckd commented 10 years ago

2 cases:

dtrckd commented 10 years ago

I figured out that if I change the colorscheme to, for example "torte", it solves the problem, nevertheless it still there for the "default" colorscheme which I use.

itchyny commented 10 years ago

What does :echo &background ==# 'dark' and :echo calendar#color#normal_fg_color() say?

dtrckd commented 10 years ago

1 and 232 for default colorscheme 1 and 255 for torte colorscheme

itchyny commented 10 years ago

What is :echo synIDattr(synIDtrans(hlID('Normal')), 'fg', 'cterm')?

dtrckd commented 10 years ago

empty...

Enrico68 commented 10 years ago

Yes, that was the problem... change to 256-grayvim all is displaying correctly !

dtrckd commented 10 years ago

256-grayvim is not in the default colorcheme and having functionnal displaying in default configuration seems to me important.

dtrckd commented 10 years ago

It works, good job !

itchyny commented 10 years ago

Yeah, it's important for a plugin to work everywhere, while it's hard for developers. But this case seems to be caused by my oversight.