vim_config/config/theme.vim

29 lines
609 B
VimL
Raw Normal View History

2021-06-11 22:55:32 +02:00
""" 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
2021-06-15 16:41:16 +02:00
source themes/melange.vim
" source themes/miramare.vim
2021-06-11 22:55:32 +02:00
function! LightOrDarkness()
if &background==?"dark"
set background=light
colorscheme edge
hi Search guibg=Green
elseif &background==?"light"
set background=dark
2021-06-15 16:41:16 +02:00
colorscheme g:colorscheme
2021-06-11 22:55:32 +02:00
hi Search guibg=Purple
endif
endfunction
" Needed for kitty not to f*ck up the background color
let &t_ut=''
" virtualedit
"set virtualedit=all