termcap/terminfo magicians anyone? // colors in vim
peter at vereshagin.org
Wed May 30 15:26:34 UTC 2012
2012/05/30 16:15:24 +0200 uki <ukaszg at gmail.com> => Cc freebsd-questions at freebsd.org :
u> things to check:
u> * does the color scheme require 256 colors? is your terminal compiled
u> with that feature?
I think I've just recompiled x11/xterm with 256 colors it but did not check the old xterm with 256color2.pl as I use tmux... With tmux I see 8 colors, 8-colored cubes and a white ramp.
Without tmux I see 16 system colors and nothing instead cubes and black ramp too.
Why should I need more colors? '-T linux' is just fine with 8 colors... It even works (but badly) in ttyvX
I restarted xterm after I rebuilt it, I believe no need to restart Xorg.
u> * check your TERM env variable, (also try setting t_Co in vim) some
u> info here: http://vim.wikia.com/wiki/256_colors_in_vim
TERM is xterm in xterm and screen in tmux.
What if vim takes a different colorscheme depending on its -T parameter ? At the least TERM=linux does the needed trick on vim but not on, say. 'ls -G' ...
On a second look I see only 3 colors enough (+ black + white) on the what-I-need picture, they are just as bright as they should.
u> ??ukasz Gruner
u> 2012/5/30 Peter Vereshagin <peter at vereshagin.org>:
u> > Hello.
u> > Being new from linux back in time I tried vim. It had pretty colors in linux for me like that:
u> > http://www.postimg.com/71000/photo-70938.jpg
u> > But in freebsd I have what I have:
u> > http://www.postimg.com/71000/photo-70939.jpg
u> > It 'just works' for me if I 'vim -T linux' but:
u> > - I'd like to know exact reason to be fixed other than just 'use linux'
u> > - It shows colors in ttyvX with TERM=cons25 but it has random '25h'
u> > showing up in places when I implement the actions from the begin of
u> > vimtutor.
u> > Nothing to add more yet other than ':set term=linux' doesn't work for colors
u> > that way.
u> > Thanks in advance.
u> > --
u> > Peter Vereshagin <peter at vereshagin.org> (http://vereshagin.org) pgp: A0E26627
u> > _______________________________________________
u> > freebsd-questions at freebsd.org mailing list
u> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
u> > To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
u> freebsd-questions at freebsd.org mailing list
u> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
Peter Vereshagin <peter at vereshagin.org> (http://vereshagin.org) pgp: A0E26627
More information about the freebsd-questions