" in .vimrc
if (has("termguicolors"))
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
let g:one_allow_italics = 1
colorscheme one
set background=dark
Add true color for tmux:
# in .tmux.config
# Add truecolor support
set-option -ga terminal-overrides ",xterm-256color:Tc"
# Default terminal is 256 colors
set -g default-terminal "screen-256color"
What is the problem?
The italic comments don't work in tmux:
And I find when I remove the let g:one_allow_italics = 1, the highlights of the comments disapear, so I think there must be something wrong with this configuration.
The background dose not full the terminal fully (This happens when outside tmux):
Distro:
wsl2
+ubuntu22.04
Terminal: Windows Terminal
Vim version:
9.0
Tmux version:
3.2a
What I have done (those below are in
.vimrc
):Add true color for
tmux
:What is the problem?
The italic comments don't work in
tmux
: And I find when I remove thelet g:one_allow_italics = 1
, the highlights of the comments disapear, so I think there must be something wrong with this configuration.The background dose not full the terminal fully (This happens when outside
tmux
):