Re: comment out block for perl program
Ken Perl wrote: hi, how to comment out or uncomment out a block for perl program file? There is a file on the Vim site call "perl-support" it adds a bunch of Perl related stuff (as a menu and key combos). It is very good. :Robert
Re: comment out block for perl program
On Wed, Jun 07, 2006 at 02:30:16PM +0200, Thor Andreassen wrote: > On Wed, Jun 07, 2006 at 04:37:48PM +0800, Ken Perl wrote: > > how to comment out or uncomment out a block for perl program file? > > There is of course the generic way with visual-block-mode, see > > :help visual.txt > > Basically it involves using , highlight what you want to comment > and hit I#. Highlight the # chars and use x to delete them when > uncommenting. > > Other than that "The NERD Commenter"[1] looks pretty promising, haven't > used it much yet though. > > [1] http://www.vim.org/scripts/script.php?script_id=1218 There are several scripts for commenting/uncommenting code. I have not tried any of them myself, but if NERD is not what you want, there are others listed at http://www.vim.org/scripts/script_search_results.php?keywords=comment&script_type=&order_by=rating&direction=descending&search=search HTH --Benji Fisher
Re: comment out block for perl program
Hi! You can also use a little perl "feature": =co her stands the code to comment out =back Using POD syntax you can also easily comment out huge blocks of code. Important is that before and after a POD command there is a blank line. Greetings, Matthias Ken Perl wrote: > hi, how to comment out or uncomment out a block for perl program > file? >
Re: comment out block for perl program
On Wed, Jun 07, 2006 at 04:37:48PM +0800, Ken Perl wrote: > how to comment out or uncomment out a block for perl program file? There is of course the generic way with visual-block-mode, see :help visual.txt Basically it involves using , highlight what you want to comment and hit I#. Highlight the # chars and use x to delete them when uncommenting. Other than that "The NERD Commenter"[1] looks pretty promising, haven't used it much yet though. [1] http://www.vim.org/scripts/script.php?script_id=1218 -- with kind regards Thor Andreassen
comment out block for perl program
hi, how to comment out or uncomment out a block for perl program file? -- perl -e 'print unpack(u,"62V5N\"FME;G\!E