[OT] Text Editor vs IDE aka ctrl-s froze VI

Ross Werner ross at agilestudios.com
Mon Oct 17 11:39:11 MDT 2005


On Mon, 17 Oct 2005, Hans Fugal wrote:
> On Mon, 17 Oct 2005 at 11:07 -0600, Andrew McNabb wrote:
>> Wouldn't it be easier to do:
>> :s/yomama/yo mama/
>> and then "n&" for each subsequent replace?
>
> I didn't know about &, that's cool. Yes, the :s approach is probably
> cleaner and better, but for whatever reason it's the other that my
> fingers do when I'm not driving them.

I find the /foo, cwbar, n. approach is more useful because you can do 
other things that are more tricky to do with a regular expression 
(especially vi regular expressions). You can even stick it in a macro if 
it gets too complex, which you can't really do with the :s approach.

 	~ Ross



More information about the PLUG mailing list