On Thu, 02 Apr 2009, Taylor Venable wrote:
>
> I have an xterm compiled with 256 color support. In Vim 7.2.88 after
> it loads up I can do :set t_Co to find that 256 color support is being
> found correctly (TERM = xterm-color). However, I cannot figure out
> how to determine whether 256 colors are supported on startup, as the
> value of t_Co is 8 at the time my .vimrc is loaded.
I also use xterm (and screen too), add these lines to vimrc will force
256 colors. ymmv.
if (&term =~ "xterm") || (&term =~ "screen")
set t_Co=256
endif
--
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
唐詩163 馬戴 楚江懷古
露氣寒光集 微陽下楚丘 猿啼洞庭樹 人在木蘭舟
廣澤生明月 蒼山夾亂流 雲中君不見 竟夕自悲秋
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---