Skip to content

Instantly share code, notes, and snippets.

@ctaylo21
Created July 1, 2018 17:00
Show Gist options
  • Save ctaylo21/1ff2e451a1aa391005c3c186cd696668 to your computer and use it in GitHub Desktop.
Save ctaylo21/1ff2e451a1aa391005c3c186cd696668 to your computer and use it in GitHub Desktop.
Customizing background color of terminal windows
" Background colors for terminal windows
hi ActiveTerminal guibg=#333333
" Call method on window enter
augroup WindowManagement
autocmd!
autocmd WinEnter * call Handle_Win_Enter()
augroup END
" Change highlight group of terminal window
function! Handle_Win_Enter()
if &buftype ==# 'terminal'
setlocal winhighlight=Normal:ActiveTerminal
endif
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment