vim: make background transparent

This way vim uses whatever the terminal has set as its background color
and therefore will "inherit" the terminal's transparency if that is in
use.
This commit is contained in:
Fernando Schauenburg 2020-12-28 00:15:59 +01:00
parent b009800b31
commit 3cb2b20788

View file

@ -216,6 +216,10 @@ nnoremap <silent> <leader>l :call VimrcCycleNumbers()<CR>
augroup vimrc " {{{
autocmd!
" Make sure the background is always transparent.
autocmd VimEnter,Syntax,ColorScheme * highlight Normal ctermbg=NONE
autocmd BufNewFile,BufRead bash_profile,bashrc,profile set filetype=sh
autocmd BufNewFile,BufRead gitconfig set filetype=gitconfig
autocmd BufNewFile,BufRead *.sx,*.s19 set filetype=srec