Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get transparent statusline in terminal Vim?

Tags:

vim

statusline

I am using Vim in the default terminal of Ubuntu. I want to make the statusline background color be transparent, that is become the color of the Ubuntu terminal background.

I tried adding this to my vimrc:

hi statusline ctermfg=NONE

Also tried:

hi statusline ctermbg=NONE

Neither has any effect. However, if I try any named color like red, it works.

Is there any way to make the statusline background be transparent in terminal Vim?

like image 486
Ashwin Nanjappa Avatar asked Nov 29 '25 05:11

Ashwin Nanjappa


1 Answers

I have the same problem, what might help is using

hi StatusLine ctermbg=0 cterm=NONE

This depends of course on your general background. What also works is to set a highlight-format:

hi StatusLine ctermbg=none cterm=bold

More light was shed into this problem in this post: https://vi.stackexchange.com/questions/2381/hi-statusline-cterm-none-displays-whitespace-characters

like image 66
Alf Avatar answered Nov 30 '25 23:11

Alf



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!