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

Incorrect Colors for Vim #23

Closed
ghost opened this issue Mar 30, 2021 · 6 comments
Closed

Incorrect Colors for Vim #23

ghost opened this issue Mar 30, 2021 · 6 comments

Comments

@ghost
Copy link

ghost commented Mar 30, 2021

After installing this plugin for vim, I noticed that some of the colors are not showing up like they should, going off by the screenshots posted in the repo. I also downloaded the VSCode version to compare it with my Vim and I saw a difference.

Here is a screenshot of how my vim looks (keep in mind for the color of the comments I modified it to be gray, but that is the only modification I did).
Screen Shot 2021-03-30 at 12 28 17 PM

And something that is even more weird is that when I add the
if exists('+termguicolors') let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" set termguicolors endif
code to my .vimrc the colors change even more. Here is a screenshot to show what I mean.
Screen Shot 2021-03-30 at 12 30 26 PM

This might be some user error from my part, so any help will be appreciated.

Also I am using "VIM - Vi IMproved" version 8.2.2375 if that helps.

@pineapplegiant
Copy link
Owner

Just a quick glance, it looks like a true color issue.
What terminal emulator are you using?

@ghost
Copy link
Author

ghost commented Mar 30, 2021

I am using the Terminal App on Mac. Thats what I was thinking but I wasn't sure. Any suggestions?

@pineapplegiant
Copy link
Owner

Ahh yeah the default terminal app last I checked doesn’t support “true color” it’s so dumb 😔. I have a link to it in the readme that talks more in depth about it:

https://gist.github.com/XVilka/8346728

It’s why I switched to iTerm and then recently to alacritty. I’ll get around to making an optimized 256 color scheme though. Let me know if that fixes it?

@ghost
Copy link
Author

ghost commented Mar 30, 2021

Perfect! Thank you so much, that makes a lot more sense now. I actually just got it to work with iTerm and I'm loving it. Thanks for the help again.

@ghost ghost closed this as completed Mar 30, 2021
@pineapplegiant
Copy link
Owner

Yay! Thanks for submitting an issue feel free to post any other pictures that seem off.

@ineghi
Copy link

ineghi commented Mar 3, 2022

I have the exact same issue, but using Xterm2, with

if exists('+termguicolors')
      let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
      let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
      set termguicolors
    endif

correctly set.
Xterms seems to handle colors correctly as i use the same colorscheme for xterm's colors and that works like a charm.
I try kind of everything I could think of, do you guys have an idea ?

This issue was closed.
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

2 participants