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. See :help map-modes for more info. Or were you missing the distinction between :nmap and :nnoremap, for example? These two commands are different only in that the first will expand mappings when executing (in your example, creating a recursive mapping), whereas the second will not expand mappings, which is what you want in this case. -- 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
