OESF Portables Forum

Everything Else => Sharp Zaurus => Model Specific Forums => Distros, Development, and Model Specific Forums => Archived Forums => C1000/3x00 General discussions => Topic started by: terryleung83 on January 17, 2006, 10:49:16 am

Title: Vim And Qkonsole
Post by: terryleung83 on January 17, 2006, 10:49:16 am
i want to ask anyone here can get vim display color(syntax highlight) with qkonsole?
qkonsole dont even display any color(except black and write)
i download the vim full from cacko feed and the vim setting there as well
Title: Vim And Qkonsole
Post by: terryleung83 on January 17, 2006, 12:26:09 pm
add a little bit more detail
i try vim in qpe terminal and it has least has some different color
i suspect that it's the problem of the terminal rather than vim
but i am not very sure if there is anyway to make qkonsole work
Title: Vim And Qkonsole
Post by: tml on January 18, 2006, 03:39:45 am
Maybe TERM is set to a non-color terminal?
Title: Vim And Qkonsole
Post by: terryleung83 on January 18, 2006, 03:41:34 am
Quote
Maybe TERM is set to a non-color terminal?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111404\"][{POST_SNAPBACK}][/a][/div]

i have tried to set this
export TERM=xterm
but it doesnt work
Title: Vim And Qkonsole
Post by: tml on January 18, 2006, 04:49:59 am
Quote
export TERM=xterm
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111406\"][{POST_SNAPBACK}][/a][/div]

TERM=linux works for me.
Title: Vim And Qkonsole
Post by: terryleung83 on January 18, 2006, 06:35:25 am
Quote
Quote
export TERM=xterm
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111406\"][{POST_SNAPBACK}][/a][/div]

TERM=linux works for me.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111414\"][{POST_SNAPBACK}][/a][/div]

thx
finally , i can make it syntax on by adding "syntax=on" in the .vimrc
Title: Vim And Qkonsole
Post by: climber on January 20, 2006, 04:11:53 am
@terryleung83

I´ve the same problem. I have a SL-C3100 Zaurus using vim via qkonsole and no syntax higlighting possible.

Do you really add "syntax=on" in the .vimrc or "syntax on".  The version "syntax on" is actuall set at my .vimrc but it doesn`t work.


Maybe i try  "export TERM=linux" this hopefuly it work.



Thanks,
climber
Title: Vim And Qkonsole
Post by: terryleung83 on January 20, 2006, 04:59:54 am
Quote
@terryleung83

I´ve the same problem. I have a SL-C3100 Zaurus using vim via qkonsole and no syntax higlighting possible.

Do you really add "syntax=on" in the .vimrc or "syntax on".  The version "syntax on" is actuall set at my .vimrc but it doesn`t work.


Maybe i try  "export TERM=linux" this hopefuly it work.



Thanks,
climber
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111653\"][{POST_SNAPBACK}][/a][/div]

in .profile
Quote
export TERM=linux

in .vimrc
Quote
set syntax=on
Title: Vim And Qkonsole
Post by: climber on January 20, 2006, 05:58:21 am
Where do i find .profile to enter "export TERM=linux"? Please could you send me the link or mail me to get the same .vimrc as you have. Only to exclude my .vimrc as bad one.

eMail:   WehrleT@gmx.de

Thanks,
climber
Title: Vim And Qkonsole
Post by: tml on January 20, 2006, 06:25:17 am
Quote
Where do i find .profile
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111664\"][{POST_SNAPBACK}][/a][/div]

It's a file in your home directory (/home/zaurus) that is read when using bash as a login shell. From the bash man page:

Quote
       When  bash is invoked as an interactive login shell, or as a non-inter-
       active shell with the --login option, it first reads and executes  com-
       mands  from  the file /etc/profile, if that file exists.   After reading
       that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile,
       in  that order, and reads and executes commands from the first one that
       exists and is readable.   The --noprofile option may be  used  when  the
       shell is started to inhibit this behavior.

If it's not there yet, simply create it.

HTH