>Is it possible to set the range (lines and columns) to which the
>substitution is to be made by using the visual block mode?

Keep what he sent you, only instead of

        :%s/...

do

        :'<,'>s/...

the same way you would use explicit marks.  Eg, go to the first line,
'ma', then to the second line, 'mb', then

        :'a,'bs/...

etc.

Actually, when you have *anything* visually highlighted, just hitting
':' will get the "'<,'>" magically prepended to any command you'd type,
so you'd immediately see

        :'<,'>|         <--  '|' == cursor

filled in before you'd even type a single character.

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

Reply via email to