[vim/vim] I got auto-transparent that don't expect after enable true color. (#5703)

11 views
Skip to first unread message

SinaiHao

unread,
Feb 27, 2020, 12:47:28 AM2/27/20
to vim/vim, Subscribed

I enabled true color by:

" https://lotabout.me/2018/true-color-for-tmux-and-vim/

if has("termguicolors")

    " fix true color not work under tmux

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

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

    " enable true color

    set termguicolors

endif

It works for true color. But each time I use vim it enable transparent by it self.

image

If I remove that setting, the transparent effect disappear:

image

Environment (please complete the following information):

  • Vim version:VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jan 26 2020 11:45:38)
    包含补丁: 1-148
    编译者 Arch Linux
    巨型版本 with GTK3 GUI.
  • OS: Manjaro
  • Terminal: konsole


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

K.Takata

unread,
Feb 27, 2020, 1:25:23 AM2/27/20
to vim/vim, Subscribed

What is your expected behavior?
It should not be transparent on true color, or it should be transparent on non-true color?
Are there any transparent-related-settings in konsole?

SinaiHao

unread,
Feb 27, 2020, 1:34:54 AM2/27/20
to vim/vim, Subscribed

Thanks for your reply! It should not be transparent on true color!

Yeah I have transparent-related-settings in konsole, but it already there, and work fine with vim (no auto transparent) if I not using true color.

Christian Brabandt

unread,
Feb 27, 2020, 3:37:32 AM2/27/20
to vim/vim, Subscribed
What color scheme is this?

> Am 27.02.2020 um 06:47 schrieb SinaiHao <notifi...@github.com>:
>
> 

> I enabled true color by:
>
> " https://lotabout.me/2018/true-color-for-tmux-and-vim/
> if has("termguicolors")
> " fix true color not work under tmux
> let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
> let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
> " enable true color
> set termguicolors
> endif
> It works for true color. But each time I use vim it enable transparent by it self.
>
>
>
> If I remove that setting, the transparent effect disappear:
>
>
>

SinaiHao

unread,
Feb 27, 2020, 3:41:12 AM2/27/20
to vim/vim, Subscribed

Christian Brabandt

unread,
Feb 27, 2020, 4:10:32 AM2/27/20
to vim...@googlegroups.com
It might depend on the Normal highlighting group. So what is the output of 
:hi Normal
?
Am 27.02.2020 um 09:41 schrieb SinaiHao (Vim Github Repository) <vim-dev...@256bit.org>:



@chrisbra it's gruvbox https://github.com/morhetz/gruvbox


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/5703/591850125%40github.com.

Christian Brabandt

unread,
Feb 27, 2020, 4:28:10 AM2/27/20
to vim/vim, Subscribed

Please check the output of :hi Normal. This might be a color scheme issue.

SinaiHao

unread,
Feb 27, 2020, 4:43:29 AM2/27/20
to vim/vim, Subscribed

I got this:

:hi Normal
Normal         xxx ctermfg=223 ctermbg=235 guifg=#ebdbb2 guibg=#282828

You mean the xxx? I don't know much about color scheme.

SinaiHao

unread,
Feb 27, 2020, 4:44:20 AM2/27/20
to vim/vim, Subscribed

Yeah, I tried other color schme like https://github.com/sainnhe/sonokai

It works fine, no this issue.

Christian Brabandt

unread,
Feb 27, 2020, 4:54:27 AM2/27/20
to vim/vim, Subscribed

I got this:

:hi Normal
Normal         xxx ctermfg=223 ctermbg=235 guifg=#ebdbb2 guibg=#282828

You mean the xxx? I don't know much about color scheme.

That looks fine. This should not be transparent. In any case, you might want to discuss this with the colorscheme author further.

SinaiHao

unread,
Feb 27, 2020, 4:55:30 AM2/27/20
to vim/vim, Subscribed

OK, I will make a thread about this. Thanks!

SinaiHao

unread,
Feb 27, 2020, 4:55:41 AM2/27/20
to vim/vim, Subscribed

Closed #5703.

Reply all
Reply to author
Forward
0 new messages