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

Byron Clark byron at theclarkfamily.name
Mon Oct 17 11:26:12 MDT 2005


On Mon, Oct 17, 2005 at 11:12:45AM -0600, Hans Fugal wrote:
> On Mon, 17 Oct 2005 at 11:07 -0600, Andrew McNabb wrote:
> > > /yomama<enter>vllllllllcyo mama<esc>n.n.n.
> > 
> > Wouldn't it be easier to do:
> > :%s/yomama/yo mama/g
> > 
> > or if you want to step:
> > :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 always end up using this version to choose which ones to replace:
:s/yomama/yo mama/gc

-- 
--------------------------------+-----------------------------------
Byron Clark                     |       http://www.byronandannie.net
byron at theclarkfamily.name       |      http://bits.byronandannie.net 
--------------------------------+-----------------------------------
GnuPG Fingerprint: 0365 6979 6C3E BC0C 56C0 FB7F 12B3 75DD 042B EA68

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://plug.org/pipermail/plug/attachments/20051017/aefcfb61/attachment.bin 


More information about the PLUG mailing list