Article View: comp.editors
Article #2639Re: VI - finding lines longer than 80 characters
From: DWT
Date: Sun, 22 Nov 1992 21:04
Date: Sun, 22 Nov 1992 21:04
23 lines
1365 bytes
1365 bytes
In article <1992Nov20.212000.14999@cs.wisc.edu> cheevers@wolf.cs.wisc.edu
(John Cheevers) wrote:
>The "&" key will execute the last substitute command. Strangely, it only
>does it once - If your last command was
>
> :s/recieve/receive/g
>
>Then hitting "&" executes
>
> :s/recieve/receive (without the "g")
The & command does lose the flags of the subsitute command that it repeats,
but you can reissue the flags by using ex's & command instead of vi's:
:&g
or if the substitution worked out so well that you want to do it everywhere,
:%&g
David W. Tamkin P. O. Box 59297 Northtown Station, Illinois 60659-0297
dattier@{holonet.net|gagme.chi.il.us} CIS: 73720,1570 MCI Mail: 426-1818
Technical Details
Message-ID:
<By4yK0.rM@iat.holonet.net>Path:
arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!iat.holonet.net!dattierReferences:
<1992Nov20.005343.807@pasteur.Berkeley.EDU> <#nz10s#@rpi.edu> <1992Nov20.212000.14999@cs.wisc.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.editors Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!agate!iat.holonet.net!dattier From: dattier@orac.holonet.net (DWT) Subject: Re: VI - finding lines longer than 80 characters Message-ID: <By4yK0.rM@iat.holonet.net> Sender: usenet@iat.holonet.net (USENET News System) Nntp-Posting-Host: holonet.holonet.net Organization: Information Access Technologies, Inc. of Berkeley, CA References: <1992Nov20.005343.807@pasteur.Berkeley.EDU> <#nz10s#@rpi.edu> <1992Nov20.212000.14999@cs.wisc.edu> Distribution: na Date: Sun, 22 Nov 1992 21:04:47 GMT Lines: 23