kaicataldo / material.vim

🎨 A port of the Material color scheme for Vim/Neovim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iterm colors not showing

rishabhdeepsingh opened this issue · comments

It's Showing the wrong colors. I am using iterm2.
Screenshot 2019-10-09 at 4 43 40 AM

Are you using true colors?

For what it's worth, I use iTerm2 and am not able to replicate this. If you are using true colors, can you share what version of Vim or Neovim you're using?

Yes, I am using true colors. its in the .vimrc file as shown in the picture.

VIM - Vi IMproved 8.1 (2018 May 18, compiled Oct  9 2019 04:09:55)
macOS version
Included patches: 1-2102
Compiled by Homebrew

Your configuration for the theme looks correct to me, so it seems likely that it's something else in your configuration/setup.

It worked but now the Comments are showing badly.
Screenshot 2019-10-12 at 10 42 12 AM

I got it fixed by setting set -g default-terminal "tmux-256color" in my .tmux.config and this

let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"

in .vimrc

Ah okay, so it was a tmux issue. Makes sense! Glad you figured it out.

@rishabhdeepsingh to get italics to work, you need to set

let &t_ZH="\<Esc>[3m"
let &t_ZR="\<Esc>[23m"

in your vimrc.