Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: .vimrc options to assist with perl coding

by toadi (Chaplain)
on Feb 05, 2002 at 09:49 UTC ( #143390=note: print w/ replies, xml ) Need Help??

in reply to .vimrc options to assist with perl coding

Another part I have in my .vimrc:

au BufNewFile *.pl,*.cgi s,^,#!/usr/bin/perl -w, \ | w \ | !chmod +x %
Maybe not pretty but does the trick, maybe you can also add to this the use strict; stuff and some other header stuff. So eacht time you start a new perl file it automatically puts a header in. Try it for the next version :)

My opinions may have changed,
but not the fact that I am right

Comment on Re: .vimrc options to assist with perl coding
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://143390]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2015-10-04 19:55 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (104 votes), past polls