On Oct 15, 3:07 am, pansz <[email protected]> wrote:
> Alexander Kutka 写道:
>
> > if &term =~ "xterm-color"
> >    if has("terminfo")
> >          set t_Co=8
> >          set t_Sf=
> >          et t_Sb=
> > else
> >          set t_Co=8
> >          set t_Sf=
> >          et t_Sb=
> > endif
> > endif
>
> > set number
> > set title
> > set background=dark
> > syntax on
> > syntax enable
> > ---------------------------------------
>
> There should be an :set nocompatible on the first line of your .vimrc,
> is it there?
>
> AFAIK putty supports xterm with 256 colors, I don't know if t_Co=8 works
> for putty but t_Co=256 works for me.

Forget all the advice about changing t_Co, there's no need. If you set
Terminal-type string in PuTTY correctly, Vim will automatically detect
how many colours the terminal has. In the PuTTY Configuration
dialogue, go to Connection>Data. Set Terminal-type string to
'putty-256color'. Then make sure you have the putty-256color terminfo
file installed.

Additionally, if you're using screen, make sure that your .screenrc
contains 'term screen-256color'.

Henrik.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to