From 686658e0596a9a8b7e697ea35a2e767817681ed8 Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 31 Jul 2026 21:05:28 +0800 Subject: hehe --- core/vim.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/vim.sh') 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