Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: .vimrc for perl programmers

by vagnerr (Prior)
on Mar 30, 2006 at 15:16 UTC ( #540187=note: print w/ replies, xml ) Need Help??


in reply to .vimrc for perl programmers

I have a couple

Using folding:

When you hit F2 inside a code block it folds on that block, working on your {}'s

set foldmethod=marker nmap <F2> 0v/{<CR>%zf

Code Skeletons:

When you start a new perl file have vim automaticaly give you #!/usr/local/perl -w and use strict; :-)
autocmd BufNewFile *.pm 0r ~/.vim/skeleton.pm autocmd BufNewFile *.pl 0r ~/.vim/skeleton.pl


_____________________
Remember that amateurs built Noah's Ark. Professionals built the Titanic.


Comment on Re: .vimrc for perl programmers
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://540187]
help
Chatterbox?
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: (5)
As of 2015-07-02 00:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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









    Results (25 votes), past polls