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 -g bell-action any
## Set default terminal ## Set default terminal
set -g default-terminal "xterm-kitty" set -g default-terminal "screen-256color"
set -ga terminal-overrides ",xterm-kitty:Tc" set -ga terminal-overrides ",xterm-kitty:Tc"
# i3 split bindings # i3 split bindings

View File

@ -41,8 +41,10 @@ Plug 'cocopon/iceberg.vim'
call plug#end() call plug#end()
""Colors ""Colors
colorscheme iceberg colorscheme iceberg
"set t_Co=256
set termguicolors 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 ""Quitting whether Goyo is active or not
function! g:Goyo_before() function! g:Goyo_before()
let b:quitting = 0 let b:quitting = 0