Jürgen Krämer wrote:

>Hi,
>
>James Vega wrote:
>  
>
>>On Jan 16, 2008 8:39 AM, Jürgen Krämer <[EMAIL PROTECTED]> wrote:
>>    
>>
>>>The behaviour you want can be achieved with an additional script by
>>>Dr. Chip. You can download it from the following url
>>>      
>>>
>>In Vim7 you can also use the \%V operator as described at ":help
>>/\%V".  This will limit the match to only the area selected by the
>>visual block.
>>    
>>
>
>which is a bit awkward to use if you want to make sure that the search
>text is completely inside the block, e.g.,
>
>             +----+
>  I. this is |foo |text
>  II. this is| foo| text
>  III. this i|s fo|o text
>             +----+
>
>with a 4x3 block (marked by lines)
>
>  '<,'>s/\%Vfoo/bar/
>
>replaces all three occurences of foo.
>  
>

However, my plugin does handle this case, replacing only the two "foo"s:

   :'<,'>B s/foo/bar/

Regards,
Chip Campbell


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui