[Cialug] vi substituting
Nathan Stien
nathanism at gmail.com
Sat Jan 26 10:58:34 CST 2008
On Jan 26, 2008 10:52 AM, Eric Junker <eric at eric.nu> wrote:
> I think what happened is that it replaced it on the first line but then
> says "Pattern not found" because there are no more occurrences on that
> line. You need to use :%s/thisthis From/From/g The % symbol tells it to
> perform the replace on all lines.
Oh yeah. Eric is definitely right. When I read Todd's original
email, my brain filled in the "%" to his command line before it even
got to my consciousness. I have never had occasion to do a :s without
the "%".
More information about the Cialug
mailing list