changes for 24bit colors in vim

This commit is contained in:
Petr Nyc
2023-02-27 13:21:28 +00:00
parent cce95a87b6
commit 726f3cd48f
2 changed files with 8 additions and 0 deletions

View File

@@ -65,6 +65,10 @@ set -g pane-base-index 1
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'
# workaround for 24bit colors for vim in tmux
# tip from https://github.com/vim/vim/issues/3608
set -ag terminal-overrides ",xterm-256color:Tc"
# tpm install: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)

4
.vimrc
View File

@@ -70,6 +70,10 @@ let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" 24bits color fix for tmux
" inspiration from https://github.com/vim/vim/issues/3608
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
" solarized config
set termguicolors