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
Code Skeletons:
When you start a new perl file have vim automaticaly give you #!/usr/local/perl -w and use strict; :-)
_____________________
Remember that amateurs built Noah's Ark. Professionals built the Titanic.
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.
|
---|
In Section
Meditations