From f56fdb28d03297d569fe49d33100bd32ebda2e42 Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 25 Nov 2019 00:44:30 +0100 Subject: [PATCH] Fix vim colorscheme inside tmux --- tmux/.tmux.conf | 2 +- vim/.vimrc | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 6929603..f09ae98 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -7,7 +7,7 @@ bind C-x send-prefix set -g bell-action any ## Set default terminal -set -g default-terminal "xterm-kitty" +set -g default-terminal "screen-256color" set -ga terminal-overrides ",xterm-kitty:Tc" # i3 split bindings diff --git a/vim/.vimrc b/vim/.vimrc index d41964c..906dc33 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -41,8 +41,10 @@ Plug 'cocopon/iceberg.vim' call plug#end() ""Colors colorscheme iceberg -"set t_Co=256 set termguicolors +""Sets the colorscheme in tmux +let &t_8f = "\[38;2;%lu;%lu;%lum" +let &t_8b = "\[48;2;%lu;%lu;%lum" ""Quitting whether Goyo is active or not function! g:Goyo_before() let b:quitting = 0