Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

vi format

by caesar (Initiate)
on Apr 26, 2002 at 00:42 UTC ( #162142=perlquestion: print w/replies, xml ) Need Help??

caesar has asked for the wisdom of the Perl Monks concerning the following question:

This is more of a Linux question than Perl, but if perl is the paint of the gods then Linux must be their canvas, so their must be a guru or two that can help me out. I'm trying to change vi configuration so that it will format reserved words in Perl (and other languages) so that progs are more readable for my users. I've tried playing with the .vimrc file in my directory, but have had no luck so far. Thanks in advance for the help!! (i'm running mandrake 8.1 by the way)

Replies are listed 'Best First'.
Re: vi format
by {NULE} (Hermit) on Apr 26, 2002 at 00:50 UTC

    I am presuming that you are running VIM. There are very good sources of information about configuring VIM already so check these out.

    That last one contains the archive of the VIM-users mailing list and will tell you how to join. That is the best place to ask this question.

    VIM already has decent Perl high-lighting capabilities (try ':syn on' while editing a .pl or .pm file). One more note of interest though - one of the VIM developers recently updated a super-charged Perl syntax high-lighting script on VIMonline. Check the script archives there.

    Update: Now that I've pondered a bit what I told you here and what you are actually asking, perhaps you should also check out what perltidy has to offer...

    Update 2: I consider this question to be sufficiently Perl related to remain on this site. It appears to deal with utilities for formatting and displaying Perl code. While it is better classified as a discussion, I do feel it adds useful (if only marginally so) discussion to the site.

    Good luck (and ask a Perl question, next time! {G}),

    P.S. Almost forgot.... VIM Rules! Emacs Sucks! :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://162142]
Approved by bassplayer
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2020-09-28 19:29 GMT
Find Nodes?
    Voting Booth?
    If at first I donít succeed, I Ö

    Results (144 votes). Check out past polls.