>> > 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 '*/' > > ------------------------------ > That's cool. I wonder though if there's a way to do this in Vim. We work on Windows boxen at work (at gun point), and I don't have Perl installed.
Thanks, Eric P -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]