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

Re: .vimrc for perl programmers

by philcrow (Priest)
on Mar 30, 2006 at 14:25 UTC ( #540176=note: print w/ replies, xml ) Need Help??


in reply to .vimrc for perl programmers

Nice suggestions. Have you also tried some of these:

Folding:

let perl_fold=1 let perl_fold_blocks=1
Highlight POD correctly:
let perl_include_pod = 1
Insert Data::Dumper dumping statement (note that ^[ must be entered as a real escape, use ctrl-V):
imap <F3> use Data::Dumper; warn Dumper( );^[hhi
And one I got from this site, it comments out a block (again ^M is a real return):
map <F8> :'a,.s/^/#/gi^M:nohl^M
To use this last one, make an 'a' mark (ma) at the top of the block. Move to the bottom of the block and hit F8.

Phil


Comment on Re: .vimrc for perl programmers
Select or Download Code
Re^2: .vimrc for perl programmers
by tinita (Parson) on Mar 30, 2006 at 15:27 UTC
    imap <F3>  use Data::Dumper; warn Dumper(  );^[hhi
    after several years of using Dumper() like this i wrote a much more useful macro (see my other post).
    forgetting Dumper() statements in code and finding the right ones to comment out can be really annoying. by using the Dump() method and variable names (Data::Dumper->Dump([\$test], ['test'])) you can debug much more sophisticated.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (13)
As of 2014-09-18 17:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (120 votes), past polls