Hi,

Richard Hartmann wrote:
> 
> I know there are some issues with visual block behaving like visual
> lines sometimes, so this might just be somewhere in the future 'for
> free', but here goes anyway :)
> 
> 
> vim -u NONE -U NONE
> "type any text over a few lines
> <esc>
> <ctrl-v>
> :s/foo/bar/g
> 
> If foo appears on the same line as, but outside of, the visual block,
> it is replaced. The expected behaviour is, of course, that only stuff
> within the visual block is replaced.

this is intended and documented behaviour. It's first mentioned below

  :help visual-block

You can find the list of operators mentioned there with

  :help visual-operators

Have a look at the footnotes of this table (especially footnote (1)).

The behaviour you want can be achieved with an additional script by
Dr. Chip. You can download it from the following url

  http://www.vim.org/scripts/script.php?script_id=1195

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

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

Raspunde prin e-mail lui