From 3cb2b20788be86571e47a950c59b50baae1863c6 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Mon, 28 Dec 2020 00:15:59 +0100 Subject: [PATCH] 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. --- roles/dotfiles/files/vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/dotfiles/files/vimrc b/roles/dotfiles/files/vimrc index 2487a5b..36196c5 100644 --- a/roles/dotfiles/files/vimrc +++ b/roles/dotfiles/files/vimrc @@ -216,6 +216,10 @@ nnoremap l :call VimrcCycleNumbers() 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