From 5651bb8b0351470ccd636c059ee2b83d285e3567 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Fri, 3 Feb 2017 14:38:41 +0000 Subject: [PATCH] Simplify xterm256-color detection --- plugin/color.vim | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/plugin/color.vim b/plugin/color.vim index 513f63e..8077b02 100644 --- a/plugin/color.vim +++ b/plugin/color.vim @@ -1,15 +1,11 @@ -if !platform#is_windows() - 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 +if !platform#is_windows() && + \ !has("gui_running") && + \ $TERM != 'xterm-256color' && + \ $TERM != 'screen-256color' && + \ $TERM != 'tmux-256color' + echo "This terminal does not report 256 color support but probaly supports it" + echo "Setup the shell to do something similar on load" + echo "env TERM=xterm-256color /usr/bin/zsh" endif if !platform#is_windows() || has("gui_running") colorscheme fresh