You are not logged in.

#1 2014-02-05 19:36:31

wootsgoinon
Member
Registered: 2013-10-30
Posts: 44

xfce4-terminal 256 colors/vim colorschemes issue

followed this guide (along with several others)
https://bbs.archlinux.org/viewtopic.php?pid=1370032

perl script tested, passed
http://robotsrule.us/vim/

echo $TERM

xterm-256color

tput colors

256

~/.vimrc

set t_Co=256
syntax on

~/.bashrc

if [ -e /usr/share/terminfo/x/xterm-256color ] && [ "$COLORTERM" == "xfce4-terminal" ]; then
    export TERM=xterm-256color
fi

# [[ -n "$DISPLAY" && "$TERM" = "xterm" ]] && export TERM=xterm-256color 

and

for ((x=0; x<=255; x++));do echo -e "${x}:\033[48;5;${x}mcolor\033[000m";done

outputs fancy colors

in spite of all the above, my vim colorschemes are still ugly. is there anyone who has successfully managed to set up vim colorschemes with xfce4-terminal? is this even possible to use those 256 colorschemes in terminal or they are gvim exclusives? i really don't know anymore. plz help, thanks

Last edited by wootsgoinon (2014-02-05 19:45:02)

Offline

#2 2014-02-05 22:09:33

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: xfce4-terminal 256 colors/vim colorschemes issue

Have you set a colorscheme? I use in ~/.vimrc:

if &term == "gnome-256color" || &term == "xterm-256color"
    set t_Co=256
    set background=dark
    colorscheme tir_black
else
    set t_Co=8
    colorscheme wuye
endif

Offline

#3 2014-02-05 23:57:25

wootsgoinon
Member
Registered: 2013-10-30
Posts: 44

Re: xfce4-terminal 256 colors/vim colorschemes issue

yea, i usually cycle through colorschemes in vim itselft (tested a lot already)

Offline

#4 2014-02-14 17:08:08

yormi
Member
Registered: 2014-02-14
Posts: 1

Re: xfce4-terminal 256 colors/vim colorschemes issue

Hey men,

I'm sure you already try that, but I just put that in my ~/.bashrc and it worked :

 if [ -n "$DISPLAY" -a "$TERM" == "xterm" ]; then
	    export TERM=xterm-256color
    fi 

Offline

#5 2014-02-14 18:41:42

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: xfce4-terminal 256 colors/vim colorschemes issue

The correct way to do that is in your .Xresources:

xterm*termName: xterm-256color

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB