From: Iain Patterson Date: Mon, 30 Mar 2009 12:05:43 +0000 (+0000) Subject: Use a different escape sequence for magenta. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=518d9698777610c32b50ac83d8a9463be91f0563;p=profile.git Use a different escape sequence for magenta. Terminal.app (which only supports 16 colours) running screen in 256-colour mode renders colours 88 and 89 as red. Use colour 90 for magenta. Terminals with real 256-colour functionality show only a subtle difference between the two colours. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@185 6be0d1a5-5cfe-0310-89b6-964be062b18b --- diff --git a/.vimrc b/.vimrc index 8385302..9fba99c 100644 --- a/.vimrc +++ b/.vimrc @@ -405,18 +405,20 @@ fun! Highlight_StatusLine(flag) " Held in insert mode. Add extra highlight if we don't have focus. if b:iainstatus =~# "f" let s:colour = "darkred" + let s:term88colour = "32" + let s:term256colour = "88" else let s:colour = "darkmagenta" + let s:term88colour = "33" + let s:term256colour = "90" endif - let s:term88colour = "33" - let s:term256colour = "89" endif else if b:iainstatus =~# "I" " Regular insert mode. let s:colour = "darkmagenta" let s:term88colour = "33" - let s:term256colour = "89" + let s:term256colour = "90" endif endif