diff options
Diffstat (limited to 'core/vim.sh')
| -rwxr-xr-x | core/vim.sh | 7 |
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 | |||
| 37 | set statusline=%F " shows full file path | 37 | set statusline=%F " shows full file path |
| 38 | 38 | ||
| 39 | if (has("termguicolors")) | 39 | if (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 |
| 41 | endif | 48 | endif |
| 42 | 49 | ||
