On Sat, Oct 22, 2005 at 08:16:52PM -0500, Eric P wrote: > > If you wanted to instead replace > > > > line 1 > > line 2 > > line 3 > > > > with > > > > /* > > line 1 > > line 2 > > line 3 > > */ > > > > I'm not sure how you'd do it. Perhaps others do. > > > > Actually, I would like to know how to do this in VIM. > > Any takers? > > Eric
I have scripts cos (comment out shell) and coc (comment out C) so that, for example, !}cos comments out a paragraph with '#' at the beginning of each line and !}cos comments out a paragraph with /*...*/. cat ~/bin/cos: #!/usr/bin/perl while (<>) { s/^/#/; print } ----------------------------- cat ~/bin/coc: echo '/*' cat echo '*/' ------------------------------ Win -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]