colors in VIM?

Discuss installation and usage of the packages from macosx.forked.net.

colors in VIM?

Postby georgemp » Fri Oct 19, 2001 12:14 am

Hi,
I downloaded and installed the vim package from here. But, try as i might I can't get it to display color. It instead underlines and highlights in bold. I'm a newbie vim user and in Linux I just did the following to get my syntax in color
:syntax enable
:set filetype=cpp
I've tried running VIM both in the mac os X terminal and xterm and eterm via XDarwin. gVIM displays in color tho in XDarwin but not in the OS X terminal. How do i get it to work? [img]images/icons/confused.gif"%20border="0[/img] Any help appreciated. Thanks. I primarily want to get it to work in color under the OS X terminal if possible.
georgemp
 
Posts: 2
Joined: Thu Oct 18, 2001 7:00 pm
Location: India

Re: colors in VIM?

Postby sungwoo » Sun Oct 21, 2001 5:44 pm

Sorry about off-topic... I am newbie in here.
I just installed VIM6.0 but got the following error.

dyld: vim can't open library: /usr/X11R6/lib/libXaw.7.dylib (No such file or directory, errno = 2)

Seems like the VIM is XDarwin application? Should I have to install XDarwin and Xwindows?
Does XEmacs needs XDarwin as well?
Thanks....
sungwoo
 
Posts: 1
Joined: Sun Oct 21, 2001 7:00 pm
Location: uk

Re: colors in VIM?

Postby apex » Mon Oct 22, 2001 8:10 am

georgemp:
Type this whilst in vim [img]images/icons/grin.gif"%20border="0[/img]

<BLOCKQUOTE><font size="1" face="Verdana, Helvetica, sans-serif">code:</font><HR><pre>
:set term=builtin_ansi
</pre>[/quote]
apex
 
Posts: 355
Joined: Sun Aug 05, 2001 7:00 pm

Re: colors in VIM?

Postby apex » Mon Oct 22, 2001 8:14 am

Originally posted by sungwoo:
Sorry about off-topic... I am newbie in here.
I just installed VIM6.0 but got the following error.

dyld: vim can't open library: /usr/X11R6/lib/libXaw.7.dylib (No such file or directory, errno = 2)

Seems like the VIM is XDarwin application? Should I have to install XDarwin and Xwindows?
Does XEmacs needs XDarwin as well?
Thanks....


You need Xfree86, and you probably want Xdarwin also. Yep, Xemacs requires X also.
apex
 
Posts: 355
Joined: Sun Aug 05, 2001 7:00 pm

Re: colors in VIM?

Postby PEZ » Fri Mar 01, 2002 1:00 pm

Originally posted by georgemp:
I primarily want to get it to work in color under the OS X terminal if possible.


An ugly, but working solution is to add the line

let &t_Co = 8

to your .vimrc file somewhere before it turns syntax highlightning on.
PEZ
 
Posts: 1
Joined: Fri Mar 01, 2002 8:00 pm

Re: colors in VIM?

Postby georgemp » Fri Mar 01, 2002 6:45 pm

Hi,
Thanks for the various replies. I managed to get a fix from http://ahdore.com/craig/vim/osx.html
before I could try out these. Basically you have to edit the /usr/share/misc/termcap.db and enter/modify

d0|foo|vt100|vt100-am|vt100am|dec vt100:\
:Co#8:Sf=\E[3%dm:Sb=\E[4%dm:\
:do=^J:co#80:li#24:cl=\E[;H\E[2J:sf=2*\ED:\
:le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\
:...... (lots of lines follow here)

The second line :do ... has to be added in

Then u need to
sudo cap_mkdb /usr/share/misc/termcap.db

Then open a new terminal window and
set term ansi (u can enter this in your .tcshrc file so that u don't have to enter it with each window opened)

VIM will work in color now. :-)

Thanks once again for the replies.


georgemp

[ March 01, 2002: Message edited by: georgemp ] :mad: :mad: :mad: :mad: :mad: :mad: :mad:

[ March 01, 2002: Message edited by: georgemp ]</p>
georgemp
 
Posts: 2
Joined: Thu Oct 18, 2001 7:00 pm
Location: India

Re: colors in VIM?

Postby <dima> » Thu Jun 24, 2004 2:18 am

Originally posted by sungwoo:
Sorry about off-topic... I am newbie in here.
I just installed VIM6.0 but got the following error.

dyld: vim can't open library: /usr/X11R6/lib/libXaw.7.dylib (No such file or directory, errno = 2)

Seems like the VIM is XDarwin application? Should I have to install XDarwin and Xwindows?
Does XEmacs needs XDarwin as well?
Thanks....
<dima>
 


Return to Ported Packages

Who is online

Users browsing this forum: No registered users and 10 guests

cron