Alacritty, Tmux, and Vim

This should make True Color (24-bit) and italics work in your tmuxarrow-up-right session and vimarrow-up-right when using Alacrittyarrow-up-right (and should be compatible with any other terminal emulator, including Kittyarrow-up-right).

Tested successfully in basharrow-up-right and zsharrow-up-right with latest packages from Arch Linuxarrow-up-right (with exception of neovimarrow-up-right built from source):

  • 2019-07-07

  • 2021-08-07

Notes

  1. Don't use &t_8f, &t_8b and t_Co in your vim config

  2. Don't set $TERM in your zshrc, bashrc, etc. Configure this in your terminal (alacritty).

Testing colors

Running this script should look the same in tmux as without.

curl -s https://gist.githubusercontent.com/lifepillar/09a44b8cf0f9397465614e622979107f/raw/24-bit-color.sh >24-bit-color.sh
bash 24-bit-color.sh
colors

Configuration files

Alacritty

In ~/.config/alacritty/alacritty.yml:

tmux

In ~/.tmux.conf (or ~/.config/tmux/tmux.conf):

vim (neovim)

In ~/.vimrc or ~/.config/nvim/init.vim:

or ~/.config/nvim/init.lua:

Last updated

Was this helpful?