Operating System - HP-UX
1823085 Members
3374 Online
109646 Solutions
New Discussion юеВ

how do I use vim on HPUX 11.0 with color?

 
SOLVED
Go to solution
John Meissner
Esteemed Contributor

how do I use vim on HPUX 11.0 with color?

OK - try not to make too much fun of me for this one but....
I am using a Redhat linus workstation and i've gotten used to running vim and seeing many different colors displayed. I spend most of my time telneting into many HPUX 11.0 or 11.i servers. I installed vim on the HP box but it doesn't display colors like my linux box does. Does anyone know how I can setup the HPUX servers to show colors like my linux box?
All paths lead to destiny
12 REPLIES 12
harry d brown jr
Honored Contributor

Re: how do I use vim on HPUX 11.0 with color?

Jordan Bean
Honored Contributor

Re: how do I use vim on HPUX 11.0 with color?


I think I'm reaching, but have you tried copying the appropriate terminfo from linux:/usr/share/terminfo to hpux:/usr/share/lib/terminfo_colr, and test vim this way?

TERMINFO=/usr/share/lib/terminfo_colr vim

This is assuming that vim uses terminfo instead of termcap. If termcap, then try copying linux:/etc/termcap to hpux:/usr/share/lib/termcap_colr (new file), and test vim this way:

TERMCAP=/usr/share/lib/termcap_colr vim

John Meissner
Esteemed Contributor

Re: how do I use vim on HPUX 11.0 with color?

Thanks - I'll give it a shot and let you know how it went.
All paths lead to destiny
MANOJ SRIVASTAVA
Honored Contributor

Re: how do I use vim on HPUX 11.0 with color?

Also check the following :


http://hp.cso.uiuc.edu/ftp/pub/hp/patches/11.04/PHSS_23145



Manoj Srivastava
John Meissner
Esteemed Contributor

Re: how do I use vim on HPUX 11.0 with color?

Harry - I followed your steps and everything installs right but when i try to vim a file it comes back with the error:

/usr/lib/dld.sl: Can't open shared library: /opt/gettext/lib/libintl.sl
/usr/lib/dld.sl: No such file or directory


but when I check the file IS there. any ideas?
All paths lead to destiny
A. Clay Stephenson
Acclaimed Contributor

Re: how do I use vim on HPUX 11.0 with color?

The first thing that I would do is an ldd /opt/vim/bin/vim and examine the files and their permissions (including directory search permissions) for all the listed dependencies.

Vim is normally an easy install and works. The other 'gotcha' might be mismatched executables, libraries, and OS release versions.
If it ain't broke, I can fix that.
harry d brown jr
Honored Contributor

Re: how do I use vim on HPUX 11.0 with color?

John,

I installed it last night and I had to create a few directories and symbolic links:

/opt/gtk+/lib/libgdk.sl -> /usr/local/lib/libgdk.sl

/opt/gtk+/lib/libgtk.sl -> /usr/local/lib/libgtk.sl

/opt/glib/lib/libgmodule.sl -> /usr/local/lib/libgmodule.sl

/opt/glib/lib/libglib.sl -> /usr/local/lib/libglib.sl

/opt/gettext/lib/libintl.sl -> /usr/local/lib/libintl.sl


live free or die
harry
Live Free or Die
John Meissner
Esteemed Contributor

Re: how do I use vim on HPUX 11.0 with color?

Ok - thanks for the reply - I now have VIM installed and the TERMCAP and TERMINFO copied over as suggested. I've installed the patch (PHSS_23145 was updated to PHSS_25879) and I ran vim and it's still just black and white. Is there something I need to set in my .profile to enable colored text? I'm open to any suggestions.
All paths lead to destiny
harry d brown jr
Honored Contributor

Re: how do I use vim on HPUX 11.0 with color?

John,

How are you connecting to your PH box? What kind of "terminal" (monitor) do you have? What is "TERM" equal to (echo $TERM)?

live free or die
harry
Live Free or Die
John Meissner
Esteemed Contributor

Re: how do I use vim on HPUX 11.0 with color?

echo $TERM returns with
xterm
I'm on a redhat 7.3 machine telnetting to an HPUX 11.0 L1000 server. I know this seems like a trivial thing to try to get working - but it's bothering me now - I do appreciate all the help though.

I've also tried copying (from linux box) /etc/DIR_colors to my unix box. no luch there either.

I tried adding
alias ls="ls -F --color=auto"
I get these errors
ls: illegal option -- -
ls: illegal option -- =
usage: ls -1ARadeCxmnlogrtucpFLbqisf [files]

and
alias ls="ls -l --color=tty"
with these errors:
ls: illegal option -- -
ls: illegal option -- =
ls: illegal option -- y
usage: ls -1ARadeCxmnlogrtucpFLbqisf [files]

So I'm sure I'm missing some key point.

All paths lead to destiny
harry d brown jr
Honored Contributor
Solution

Re: how do I use vim on HPUX 11.0 with color?

John,

HPux does not support the color option with the standard ls command.

You'll have to find a shell that does it, of which I'm not familiar with any, though I'd like to find one myself.

live free or die
harry

Live Free or Die
John Meissner
Esteemed Contributor

Re: how do I use vim on HPUX 11.0 with color?

Thanks Harry -
If you ever find a shell that lets you do this in HPUX let me know...

I was hoping that I'd be able to do this but wasn't sure. Thanks for clarifying this for me.
All paths lead to destiny