Tip #1312 - 256 colors in vim : vim online

#31 of 93 marked pages on the trail linux.ubuntu by enjoylife
enjoylife's comments
Xterm from Ubuntu (version 209) supports 256 colours.

So, I checked on my system, but vim inside screen does not show the colours properly.

So then I did a google search and came accross this:  http://frexx.de/xterm-256-notes/
bartman, August 24, 2006 21:02 Update on vim/screen/xterm using 256 colours:

vim shows 256 colours inside screen, but if that screen is configured with 256 colour support and if your screenrc contains:

    attrcolor b ".I"
    termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
    defbce "on"

... as the previous link suggested.

My notes: http://www.jukie.net/~bart/blog/256-colour-xterm
Anonymous, August 25, 2006 8:31 Thanks bartman,
now I have got 256 colors in vim!
But I had to put these lines into my ~/.vimrc:
set t_AB=^[[48;5;%dm
set t_AF=^[[38;5;%dm
Did you succeed without them?
Other comments
There are no comments on this mark.