[csw-users] "Proper" syntax highlighting with VIM?

Luke Youngblood lyoungblood at phonechargeinc.com
Tue Mar 1 23:09:51 CET 2005


Hey Thanks!  That worked great for me.  I had already done the bolthole
suggestion to properly setup the xterm-color terminfo, but I had simply
neglected to set my TERM=xterm-color.

Thanks a lot for everyone's quick responses.  Writing shell scripts can be
painful without syntax highlighting...

-----Original Message-----
From: users-bounces at lists.blastwave.org
[mailto:users-bounces at lists.blastwave.org] On Behalf Of Tom Seeley
Sent: Tuesday, March 01, 2005 4:18 PM
To: questions and discussions
Subject: Re: [csw-users] "Proper" syntax highlighting with VIM?

Yup, as far as I can tell (I'm mostly a linux guy), Sun thinks xterm's are
monochrome (there's probably some history to this).

I've found the best results come from following "9." on Phil's handy page
(http://www.bolthole.com/solaris/) and then setting $TERM appropriately ($
export TERM=xterm-color)

Tom.

Quoting Markus Gyger <markus at gyger.org>:

> Luke Youngblood writes:
> > Why is it that with the same terminal (PuTTY over SSH), same settings, I
> get
> > only bold and underline text on a Solaris box, but my Redhat box will
give
> > me full color syntax highlighting?
>
> It probably has a different entry in the terminfo database.
> You usually get the current entry using infocmp or untic.
> you can then set the environment variable TERMINFO to an
> own directory and import the entry using tic into Solaris.
> If the program is using the older termcap instead, you
> would have to add the entry to /usr/share/lib/termcap.
> Here is an example how to copy the dtterm entry from one
> system to another (you wouldn't use dtterm as parameter
> so it uses $TERM by default which you have in PuTTY probably
> configured as vt100 or xterm):
>
>     infocmp dtterm    > dtterm.ti
>     infocmp -C dtterm > dtterm.tc
> ...
>     # export TERMINFO=$HOME/lib/terminfo
>     tic dtterm.ti
>     cat dtterm.tc >> /usr/share/lib/termcap
>
> Possibly you just need to use a different value for TERM though.
>
> BTW, to enable bold in the man pages of Solaris you would e.g. need to:
>
>     echo '.bd 3 1 \" re-enable bold' >> /usr/share/lib/tmac/an
>     echo 'PAGER="less -s" LESS=-ie export PAGER LESS' >> /etc/profile
>     echo 'setenv PAGER "less -s"' >> /etc/.login
>     echo 'setenv LESS -ie' >> /etc/.login
>

_______________________________________________
users mailing list
users at lists.blastwave.org
https://lists.blastwave.org/mailman/listinfo/users




More information about the users mailing list