vim_config/config/theme.vim
2021-06-15 17:15:23 +02:00

29 lines
655 B
VimL

""" Themes and colors
if exists('+termguicolors')
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set termguicolors
endif
" source $VIMHOME/config/themes/melange.vim
source $VIMHOME/config/themes/miramare.vim
function! LightOrDarkness()
if &background==?"dark"
set background=light
colorscheme gitgo
hi Search guibg=Green
elseif &background==?"light"
set background=dark
execute 'colorscheme ' . g:colorscheme
hi Search guibg=Purple
endif
endfunction
" Needed for kitty not to f*ck up the background color
let &t_ut=''
" virtualedit
"set virtualedit=all