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

Keywords and comments with background highlighted #56

Closed
aeciolevy opened this issue Oct 21, 2020 · 7 comments
Closed

Keywords and comments with background highlighted #56

aeciolevy opened this issue Oct 21, 2020 · 7 comments
Labels

Comments

@aeciolevy
Copy link

aeciolevy commented Oct 21, 2020

Hi I tried material theme and I am getting javascript comments and some keywords with the background highlight.

Screen Shot 2020-10-21 at 10 29 55 AM

I am just wondering if someone else got this issue before. Is it normal?

@kaicataldo
Copy link
Owner

No, this isn't how it's supposed to look! It looks like it might be occurring with italicized text - do you have that option turned on?

I think I've seen this while using Vim in tmux before. Any chance you're using that? If not, it's either some kind of configuration or Vim version issue.

@kaicataldo
Copy link
Owner

Ah, I also have https://github.com/kaicataldo/dotfiles/blob/6f6f83fddf12b6736d7942e50e3144e23aaf2b30/vim/.vimrc#L294 in my vimrc - might be worth seeing if that fixes it :)

@aeciolevy
Copy link
Author

aeciolevy commented Oct 21, 2020

I have done a test. When I am opening with MacVim it just works and looks great.
So I am wondering if I an issue with iTerm2. I am not sure if it uses tmux as terminal. I will look more into that.

if (has('termguicolors'))
  set termguicolors
endif
set t_Co=256
let g:material_terminal_italics = 1
let g:material_theme_style = 'darker'
colorscheme material

This is my setup:
macOS:10.15.7
terminal: iTerm2
vim: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Oct 16 2020 05:34:50)

@aeciolevy
Copy link
Author

aeciolevy commented Oct 21, 2020

So the fix you propose for italic solved everything, thanks!

" Fix italics in Vim
if !has('nvim')
  let &t_ZH="\e[3m"
  let &t_ZR="\e[23m"
endif

@kaicataldo
Copy link
Owner

Great! I'll add this to the readme. Cool if I close this?

@kaicataldo
Copy link
Owner

For posterity, here's another report of this issue for another theme: joshdick/onedark.vim#61

@aeciolevy
Copy link
Author

Thanks for the help. You can close.

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

No branches or pull requests

2 participants