diff --git a/.tmux.conf b/.tmux.conf index 82b2329..728c4b0 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -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) diff --git a/.vimrc b/.vimrc index 3d114be..1e095d3 100644 --- a/.vimrc +++ b/.vimrc @@ -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 = "\[38;2;%lu;%lu;%lum" +let &t_8b = "\[48;2;%lu;%lu;%lum" " solarized config set termguicolors