Skip to content

Instantly share code, notes, and snippets.

@keeganjk
Created October 27, 2020 02:59
Show Gist options
  • Save keeganjk/d9e815ddb327c7de1e3a79f6503d2a0f to your computer and use it in GitHub Desktop.
Save keeganjk/d9e815ddb327c7de1e3a79f6503d2a0f to your computer and use it in GitHub Desktop.
let t:is_transparent = 0
function! Toggle_transparent()
if t:is_transparent == 0
hi Normal guibg=NONE ctermbg=NONE
let t:is_transparent = 1
else
set background=dark
let t:is_tranparent = 0
endif
endfunction
nnoremap <C-t> : call Toggle_transparent()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment