On 21/04/11 8:37 PM, Kai Weber wrote:
Hi,

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

Something else nobody has mentioned is that putting \V at the beginning
of the pattern (for very nomagic) can at least lessen the number of
characters that need to be escaped. Not very helpful, but something
that's handy to know, perhaps with other more convenient uses.

Ben.



--
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