Hi,
I am using alacritty on Arch Linux with i3 (X11) and I recently upgraded from version 0.3.2
to 0.3.3
.
After this upgrade vim no longer uses the colors that I defined on alacritty.yml
and reverts to the default terminal colors. The strange thing though, is that all other programs that I tried (htop, grep, ls) do honor the colors on alacritty.yml
.
I built alacritty from source (latest commit was 4039f720) and the same problem is present there. Downgrading back to 0.3.2
fixes this. It seems that 0.3.3
changed something that interferes with the way that vim handles colors, but affects no other program that I could try.
How it should look (and does look up til 0.3.2
):
How it looks on 0.3.3
:
Here's the relevant bit of my alacritty.yml
:
colors:
primary:
background: '0x000000'
foreground: '0xdddddd'
normal:
black: '0x1b1918'
red: '0xf22c40'
green: '0x5ab738'
yellow: '0xd5911a'
blue: '0x407ee7'
magenta: '0x6666ea'
cyan: '0x00ad9c'
white: '0xf1efee'
bright:
black: '0x766e6b'
red: '0xf22c40'
green: '0x5ab738'
yellow: '0xd5911a'
blue: '0x407ee7'
magenta: '0x6666ea'
cyan: '0x00ad9c'
white: '0xf1efee'
indexed_colors: []
@dllud What's your $TERM
variable, if it's not alacritty
can you try with it ( It's provided by alacritty-terminfo
package on Arch as far as I remember or you can consult INSTALL.md
)? if the issue persists with alacritty
terminfo would you mind sharing minimal vimrc
to reproduce it?
I don't see any difference between the current master and v0.3.2
using vim without any config.
@kchibisov Thanks a lot for looking into it!
My $TERM
variable was set to xterm-256color
. Changing it to alacritty
as you advise fixes the colors in vim.
Is this the supposed behaviour (i.e., should I close this issue)? I reckon that many others may have xterm-256color
as their default $TERM
.
Seems like this is resolved with the default Alacritty terminfo, so closing this issue.
If you're trying to fix it, there's a good chance your vim config might be odd (like using termguicolors
).
Most helpful comment
@dllud What's your
$TERM
variable, if it's notalacritty
can you try with it ( It's provided byalacritty-terminfo
package on Arch as far as I remember or you can consultINSTALL.md
)? if the issue persists withalacritty
terminfo would you mind sharing minimalvimrc
to reproduce it?I don't see any difference between the current master and
v0.3.2
using vim without any config.