On 10/07/10 06:52, Martin Trautmann wrote:
On 10-07-09 23:01, Tony Mechelynck wrote:
On 09/07/10 21:52, Ben Fritz wrote:
On Jul 8, 12:48 am, Martin Trautmann<[email protected]> wrote:
how do I map s/ to s/\v in order to use "very magic" regular expression
handling as a default?
I know that
:nnoremap / /\v
does work, but I do not really understand the map variations.
This will work fine for normal mode. You probably also want to define
an xnoremap and an onoremap version.
I tried, but it does not work.
so in this case the "nore" may be omitted, the mapping will still not be
recursive.
So I tried also
:nmap :%s/ :%s/\v
But it has no effect. Is there anything I have to escape?
Thanks,
Martin
try replacing the backslash by <Bslash>
Best regards,
Tony.
--
Dear Miss Manners:
My home economics teacher says that one must never place one's
elbows on the table. However, I have read that one elbow, in between
courses, is all right. Which is correct?
Gentle Reader:
For the purpose of answering examinations in your home
economics class, your teacher is correct. Catching on to this
principle of education may be of even greater importance to you now
than learning correct current table manners, vital as Miss Manners
believes that is.
--
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