summaryrefslogtreecommitdiff
path: root/core/vim.sh
diff options
context:
space:
mode:
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