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 <C-v>, highlight what you want to comment
> and hit I#<Esc>. 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