Facebook Application
Fairlight
fairlite at fairlite.com
Wed Dec 16 17:54:32 PST 2009
You'll never BELIEVE what Ken Cole said here...:
> 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.
Huh. I've been using %s for that, rather than g. The leading command, not
the "globally within line" suffix.
It -seems- that they're semantically the same, although I'd like to know if
I'm right in that assessment. I'll ask here, since I believe the person
that taught me %s is deceased. :(
mark->
More information about the Filepro-list
mailing list