From fb19f32af3e262d1e4180b8712075eff875aaceb Mon Sep 17 00:00:00 2001 From: Patrick Stockwell Date: Wed, 21 Oct 2020 22:11:33 +1100 Subject: [PATCH] Add italics by default for supported terminals --- colors/vim-monokai-tasty.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/colors/vim-monokai-tasty.vim b/colors/vim-monokai-tasty.vim index baf3b05..a538644 100644 --- a/colors/vim-monokai-tasty.vim +++ b/colors/vim-monokai-tasty.vim @@ -11,7 +11,11 @@ let g:colors_name = "vim-monokai-tasty" " User Options if !exists("g:vim_monokai_tasty_italic") + if has('gui_running') || $TERM_ITALICS == 'true' + let g:vim_monokai_tasty_italic = 1 + else let g:vim_monokai_tasty_italic = 0 + endif endif if g:vim_monokai_tasty_italic