summaryrefslogtreecommitdiff
path: root/core/vim.sh
diff options
context:
space:
mode:
authorYour Name <you@example.com>2026-07-31 21:05:28 +0800
committerYour Name <you@example.com>2026-07-31 21:05:28 +0800
commit686658e0596a9a8b7e697ea35a2e767817681ed8 (patch)
treeea0e51d64d54c945268ebfb16df711cc177a2b5b /core/vim.sh
parent8413ab8059618ed01eadf1a37460a33be8c7c650 (diff)
Diffstat (limited to 'core/vim.sh')
-rwxr-xr-xcore/vim.sh7
1 files changed, 7 insertions, 0 deletions
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
37set statusline=%F " shows full file path 37set statusline=%F " shows full file path
38 38
39if (has("termguicolors")) 39if (has("termguicolors"))
40 " tmux's terminfo entries (tmux-256color/screen-256color) don't define
41 " setrgbf/setrgbb, so vim has no termcap to build true-color escapes and
42 " silently emits none. Set them explicitly (standard vim+tmux fix).
43 if !empty($TMUX)
44 let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
45 let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
46 endif
40 set termguicolors 47 set termguicolors
41endif 48endif
42 49