Fix vim colorscheme inside tmux

This commit is contained in:
coolneng 2019-11-25 00:44:30 +01:00
parent d49756c711
commit f56fdb28d0
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
2 changed files with 4 additions and 2 deletions

View File

@ -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

View File

@ -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 = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
""Quitting whether Goyo is active or not
function! g:Goyo_before()
let b:quitting = 0