in reply to Multi-line comments in perl code?
if you use vim add the following to your .vimrc
after your initial # comment goes here - each time you hit a newline, a # will be placed at the beginning... or/and to .vimrcset formatoptions=r
I believe I got that last one from a thread here..." comment out blocks " ma to mark beginning " put cursor at the end and hit F7 " code will be commented out map <F7> :'a,.s/^/#/gi^M:nohl^M map <F10> :'a,.s/^#//gi^M:nohl^M
Ted
--
"That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
--Ralph Waldo Emerson
--
"That which we persist in doing becomes easier, not that the task itself has become easier, but that our ability to perform it has improved."
--Ralph Waldo Emerson
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Multi-line comments in perl code?
by TheDamian (Vicar) on Jul 14, 2006 at 14:00 UTC |
In Section
Seekers of Perl Wisdom