Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://540187]
help
Chatterbox?
[oiskuu]: Very, very smooth btw. Now the talk is about "Your mothers pussy", and freezer implies "hungry for meat"
[Your Mother]: :P
[ambrus]: YourMother: my brother told me their cat wants to climb into the dishwasher if they leave the door open. Not when the dishwasher is started, but after it's done washing, because it's still warm and cats like warm.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (9)
As of 2017-12-18 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (490 votes). Check out past polls.

    Notices?