Serge Rey wrote: > On Sat, Mar 29, 2008 at 1:52 PM, Bob La Quey <[EMAIL PROTECTED]> wrote: >> How does one limit the range of the >> vim multiline substitution command? >> >> i.e. >> :%s/that/this/ >> >> will do a global substituion of this for that. >> >> But say I want to limit the substitution to >> say ten lines from the cursor. I tried >> :10s/that/this/ > > if you are on say line 2 then: > 2:11s/that/this/ > > should do it.
or :.,.+9s/that/this or use "visual" mode :help visual-start the block-mode can be real handy sometimes. Regards, ..jim -- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
