Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

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 having an uproarious good time at the Monastery: (11)
As of 2015-07-31 20:13 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (281 votes), past polls