> -----Original Message-----
> From: Jason Holt
>
> On Tue, 13 Jul 2004, Daniel Crookston wrote:
>> When :%s///ing in vi... do <'s or >'s need to be \ed, and how
>> do you (*.)?
> 
> First off, I think you need to s/\(\*\.\)\?/\(\*\.\)\?/, in which case I think
> vim !~ non-greediness.  And no, :%s/\</./ isn't necessary in vim; :%s/</./
> should be fine.  Of course, if I wanted to be pedantic, I could suggest that
> you s/:\%s\/\/\/ing/:\%s\/\/\//, since vim reports "trailing characters" if
> you :%s///ing.
> 
> And people say the folks on the UUG aren't helpful.
> 
>                                       -J

OK, a sort-of-related bit of curiosity:  What's the difference (besides a lot
of extra typing) between :g//s///g and :%s///g ?

____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list

Reply via email to