vim color fix for suckless st

This commit is contained in:
Ole Morud
2022-06-04 10:57:35 +02:00
parent 5273f25a5f
commit 858ea24ade

10
.vimrc
View File

@@ -37,8 +37,18 @@ set shiftwidth=4
autocmd filetype c nnoremap <F5> :w <bar> exec '!gcc '.shellescape('%').' -lm -o '.shellescape('%:r').' && ./'.shellescape('%:r')<CR>
" Color scheme
if &term =~ '256color'
" disable Background Color Erase (BCE) so that color schemes
" render properly when inside 256-color tmux and GNU screen.
" see also https://sunaku.github.io/vim-256color-bce.html
set t_ut=
endif
set t_8f=[38;2;%lu;%lu;%lum " set foreground color
set t_8b=[48;2;%lu;%lu;%lum " set background color
set background=light
set termguicolors
set t_Co=256
colorscheme melange
" Save swap and undo and backup files in separate directory