Facebook Application

Ken Cole ken.m.cole at gmail.com
Wed Dec 16 16:48:00 PST 2009


No :g means global in the file, every line

this command is:

:g/target/s/string1/string2/

globally find target and substitute for string1 string2

This will only do the substitute one per line unless there is a
trailing g for global in the line.

On Thu, Dec 17, 2009 at 10:44 AM, Fairlight <fairlite at fairlite.com> wrote:
> You'll never BELIEVE what Bruce Easton said here...:
>> (for vi I think the ed command to switch them
>>  would be:  :g/html \"1\" ^A/s/html \"1\" ^A/jsfile \"1\" ^A/g)
>
> I believe you mean :s not :g  ...and if you're not on the line in question,
> then :%s
>
> mark->
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> http://mailman.celestial.com/mailman/listinfo/filepro-list
>


More information about the Filepro-list mailing list