Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

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 chanting in the Monastery: (7)
As of 2015-02-01 17:11 GMT
Find Nodes?
    Voting Booth?

    On my keyboard, Caps lock is:

    Results (6 votes), past polls