From 3f8deeb3a85fb031aec7d199d2087b736f85737e Mon Sep 17 00:00:00 2001 From: Italo Cunha Date: Sun, 22 Oct 2017 12:58:06 -0200 Subject: [PATCH] fix detection of italics --- colors/solarized.vim | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/colors/solarized.vim b/colors/solarized.vim index 07aea94..d0afe1f 100644 --- a/colors/solarized.vim +++ b/colors/solarized.vim @@ -137,6 +137,8 @@ " Terminals that support italics let s:terms_italic=[ \"rxvt", + \"tmux", + \"italic, \"gnome-terminal" \] " For reference only, terminals are known to be incomptible. @@ -149,8 +151,8 @@ if has("gui_running") let s:terminal_italic=1 " TODO: could refactor to not require this at all else let s:terminal_italic=0 " terminals will be guilty until proven compatible - for term in s:terms_italic - if $TERM_PROGRAM =~ term + for testterm in s:terms_italic + if $TERM =~ testterm let s:terminal_italic=1 endif endfor @@ -538,7 +540,7 @@ endif exe "hi! Normal" .s:fmt_none .s:fg_base0 .s:bg_back -exe "hi! Comment" .s:fmt_ital .s:fg_base01 .s:bg_none +exe "hi! Comment" .s:fg_base01 .s:bg_none .s:fmt_ital " *Comment any comment exe "hi! Constant" .s:fmt_none .s:fg_cyan .s:bg_none