vim_config/config/theme.vim

29 lines
655 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 17:07:01 +02:00
" source $VIMHOME/config/themes/melange.vim
source $VIMHOME/config/themes/miramare.vim
2021-06-15 16:41:16 +02:00
2021-06-11 22:55:32 +02:00
function! LightOrDarkness()
if &background==?"dark"
set background=light
2021-06-15 17:15:23 +02:00
colorscheme gitgo
2021-06-11 22:55:32 +02:00
hi Search guibg=Green
elseif &background==?"light"
set background=dark
2021-06-15 17:15:23 +02:00
execute '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