From a8c012881a4361e90cce6851d256e18a880f9f50 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Wed, 11 Jan 2017 20:27:30 +0000 Subject: [PATCH] Update vim TERM checks --- plugin/color.vim | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/plugin/color.vim b/plugin/color.vim index 4182771..513f63e 100644 --- a/plugin/color.vim +++ b/plugin/color.vim @@ -1,17 +1,14 @@ if !platform#is_windows() - if $COLORTERM == 'gnome-terminal' - if $TERM != 'xterm-256color' && - \ $TERM != 'screen-256color' && - \ $TERM != 'xterm-256color-italic' && - \ $TERM != 'screen-256color-italic' - echo "This terminal does not report 256 color support" - echo "For gnome-terminal:" - echo "Open: Profile Preferences" - echo "Open: Title and Command" - echo "Tick: Run a custom command instead of my shell" - echo "Add the following custom command" - echo "env TERM=xterm-256color /usr/bin/zsh" - endif + if $TERM != 'xterm-256color' && + \ $TERM != 'screen-256color' && + \ $TERM != 'tmux-256color' + echo "This terminal does not report 256 color support" + echo "For gnome-terminal:" + echo "Open: Profile Preferences" + echo "Open: Title and Command" + echo "Tick: Run a custom command instead of my shell" + echo "Add the following custom command" + echo "env TERM=xterm-256color /usr/bin/zsh" endif endif if !platform#is_windows() || has("gui_running")