summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/tmux.conf4
-rwxr-xr-xcore/vim.sh7
2 files changed, 11 insertions, 0 deletions
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 @@
1# True-color support regardless of what TERM the outer terminal/distro sets
2set -g default-terminal "tmux-256color"
3set -ga terminal-overrides ",*256col*:Tc"
4
1# Vi mode for copy 5# Vi mode for copy
2setw -g mode-keys vi 6setw -g mode-keys vi
3 7
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