Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
Hello, Monks.

This is a tad off topic, but I don't know where else to turn. I've been writing perl scripts to run on Linux, Irix, and Solaris servers. When I'm using a Linux machine, I use vim with the vim.perl syntax module enabled, and life is wonderful. The color-coding makes the code more legible, and coding is just plain easier. Thing is, when I use a Solaris machine, my results are totally different. Syntax coloring is severely limited, and often doesn't work at all.

Here's the specifics of my environment: I'm using a Red Hat 7.3 box to telnet to various servers. If I use an xterm or gnome-terminal window, I get full syntax coloring from my Linux machines. Connecting to a Solaris machine through a gnome-terminal window, I get no syntax color. If I manually :set syntax, I see that some of the text is bolded, and some underlined, but it's all the same color. Using an xterm window to do the same thing, I get only 3 colors used for the syntax. The version of vim on the Linux machine is 6.1.165 and on Solaris it's 6.0.11.

In all cases, I'm using the same .exrc and vim.perl files, and the shell is tcsh. I've tried comparing $ENV and the output of 'set' on the Linux and Solaris machines, and can't see a smoking gun.

Why should gnome-terminal and xterm behave differently when connecting to the same machine? Why is there such a difference in the behavior of the syntax coloring on Solaris? Why should there be such a major change in functionality between the two versions?

I've tried vim.org, the O'Reilly vi book, Red Hat.com, and I googled until my fingers bled. I'm out of ideas, and totally baffled.

Has anyone else faced this? Can someone point me to a solution?

Thanks,

-Logan
"What do I want? I'm an American. I want more."

Repaired RH.com link at author's req. - dvergin 2003-02-12


In reply to Perl syntax coloring using vim by logan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Domain Nodelet?
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this?Last hourOther CB clients
    Other Users?
    Others lurking in the Monastery: (None)
      As of 2024-09-10 05:32 GMT
      Sections?
      Information?
      Find Nodes?
      Leftovers?
        Voting Booth?

        No recent polls found

        Notices?
        erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.