On 04/21/2011 07:37 AM, Jean-Rene David wrote:
Currently my workflow replacing a visual selection is like this:

1. Go to Visual mode
2. Select text
3. y'ank
4. :%s/<c-r>*/foo/g

How about:

    1. go to visual mode
    2. select text
    3. press c

This only does the match under the cursor while the OP's original does every match in the file.

-tim



--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to