striker wrote:
What version of Vim are you using? In version 7.0 on both Windows and OS X, highlighting the region and doing :s/x/y/g works fine.
Kevin

yes, linewise (with '<,'> auto inserted after : ). But blockwise?



On Aug 2, 2006, at 2:23 AM, Bernd Strohhäcker wrote:

Dr. Johannes Zellner schrieb:
Hi,

having marked a visual block with ctrl-v, I'd like to so a search /
replace only in that visual block. E.g. when selecting the right block
in:

xx xx
xx xx
xx xx
xx xx

I'd to do something like s/xx/yy/g which applies only to the selected
block. How can I do this?


Hi,

try Charles Campell's vis-script: http://www.vim.org/scripts/script.php?script_id=1195

HTH, Bernd






Best regards,
Tony.

Reply via email to