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
|
|
|
|
2022-09-27 18:05:19 +02:00
|
|
|
function! s:colorscheme_gitgo()
|
|
|
|
hi Search guibg=Green
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! s:colorscheme_miramare()
|
|
|
|
hi Search guibg=Purple
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
autocmd! ColorScheme gitgo call s:colorscheme_gitgo()
|
|
|
|
autocmd! ColorScheme miramare call s:colorscheme_miramare()
|
|
|
|
|
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
|
|
|
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
|
|
|
endif
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
" Needed for kitty not to f*ck up the background color
|
|
|
|
let &t_ut=''
|
|
|
|
|
|
|
|
|
|
|
|
" virtualedit
|
|
|
|
"set virtualedit=all
|