From 686658e0596a9a8b7e697ea35a2e767817681ed8 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 31 Jul 2026 21:05:28 +0800 Subject: hehe --- core/tmux.conf | 4 ++++ core/vim.sh | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/core/tmux.conf b/core/tmux.conf index 94316d2..465641c 100644 --- a/core/tmux.conf +++ b/core/tmux.conf @@ -1,3 +1,7 @@ +# True-color support regardless of what TERM the outer terminal/distro sets +set -g default-terminal "tmux-256color" +set -ga terminal-overrides ",*256col*:Tc" + # Vi mode for copy setw -g mode-keys vi diff --git a/core/vim.sh b/core/vim.sh index 2b2854e..8041e0e 100755 --- a/core/vim.sh +++ b/core/vim.sh @@ -37,6 +37,13 @@ set laststatus=2 " permanent status bar set statusline=%F " shows full file path if (has("termguicolors")) + " tmux's terminfo entries (tmux-256color/screen-256color) don't define + " setrgbf/setrgbb, so vim has no termcap to build true-color escapes and + " silently emits none. Set them explicitly (standard vim+tmux fix). + if !empty($TMUX) + let &t_8f = "\[38;2;%lu;%lu;%lum" + let &t_8b = "\[48;2;%lu;%lu;%lum" + endif set termguicolors endif -- cgit