maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   vim syntax - color is not working (https://talk.maemo.org/showthread.php?t=28714)

cameris 2009-05-04 10:43

vim syntax - color is not working
 
Hi,

today I recieved my n810 and run in some problem with vim from the maemo repositories.
Syntax highlighting does not seem to work, no color.
I tried :syntax on, but then only some words are bold and export TERM=xterm-color also did not seem to change anything. First I thought it was a problem with the osso-xterm, but the bash promt (bash2 from the maemo repo) shows color.

What Iam doing wrong? Any ideas?

greetings,
cameris

bousch 2009-05-04 22:10

Re: vim syntax - color is not working
 
I put these lines in my vimrc and it works for me:

set t_Co=256
set t_AB=^[[48;5;%dm
set t_AF=^[[38;5;%dm
syntax enable

you have to enter ^[ with ctrl-v followed by escape.

cameris 2009-05-05 05:41

Re: vim syntax - color is not working
 
awesome!

thanks for your help bousch.


All times are GMT. The time now is 07:35.

vBulletin® Version 3.8.8