diff --git a/ui.vim b/ui.vim index 64b5c50..021c20a 100644 --- a/ui.vim +++ b/ui.vim @@ -4,7 +4,13 @@ " support true colors! For a comprehensive list of terminals supporting true " colors, see https://github.com/termstandard/colors and " https://bit.ly/2InF97t) -set termguicolors +if exists("&termguicolors") + if $TERM == "xterm-256color" + set termguicolors + else + set notermguicolors + endif +endif " Use dark background set background=dark