> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Rick Macdougall > Sent: Wednesday, December 03, 2003 4:17 PM > To: 'SA List' > Subject: Re: [SAtalk] BIG HUGE EVIL RULE NEWS!!!! > > Peter P. Benac wrote: > > > I have been using Emacs for almost 20 years. Is there any other > > editor :) > > > > :s/old stuff/newstuff/g only works if you only have one > instance of "old > > stuff" per line!! > > > > Huuuu? > > What you talking about Willis? > > :s/old stuff/newstuff/g will replace ALL instances of old > stuff with new stuff on the current line, not just one instance. > > :1,$ s/old stuff/newstuff/g will replace all instances of old > stuff with newstuff in the entire file. > > Flame war ON! > > heh. > > Regards, > > Rick > Ahh, one of the few times I post and I help start a flame war :-)
At least I tried to take it off the list, I sent this direct: Ahh, the great editor debate :-) Before I get into the mess below, I will concede from the start the emacs is the superior editor. Nothing beats split windows, reading news or email in one, and coding in the other! Perhaps I am reading your comment wrong, but if I have a file such as: old stuff oldstuff old stuff oldstuff oldstuff old stuff oldstuff And do :%s/oldstuff/newstuff/g I get: old stuff newstuff old stuff newstuff newstuff old stuff newstuff It changes every occurrence, it even works with the spaces example: old stuff oldstuff old stuff oldstuff oldstuff old stuff oldstuff :%s/old stuff/newstuff/g newstuff oldstuff newstuff oldstuff oldstuff newstuff oldstuff Got both occurrence of "old stuff", 2 on first line 1 on second line. Did I miss-read your comment? ------------------------------------------------------- This SF.net email is sponsored by OSDN's Audience Survey. Help shape OSDN's sites and tell us what you think. Take this five minute survey and you could win a $250 Gift Certificate. http://www.wrgsurveys.com/2003/osdntech03.php?site=8 _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk