Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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)

Comment on vi format
Re: vi format
by {NULE} (Hermit) on Apr 26, 2002 at 00:50 UTC
    caesar,

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

    http://vim.sourceforge.net/
    http://www.vim.org/
    http://groups.yahoo.com/group/vim/

    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}),
    {NULE}
    --
    http://www.nule.org

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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2014-12-25 10:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (160 votes), past polls