I use this plugin (incsearch.vim) which changes the search function in vim by highlighting the text dynamically while typing the regex after /
or ?
.
For the plugin to work I had to add these lines in my ~/.vimrc
:
map / <Plug>(incsearch-forward)
map ? <Plug>(incsearch-backward)
I suppose the result is that whenever I hit /
or ?
, some functions (incsearch-forward()
and insearch-backward()
) provided by the plugin are called to take care of the search.
I would like to modify those mappings, so that the plugin's functions are still called but the search begins automatically with \v
, the very magic mode is enabled and I don't have to escape (
, )
, {
, +
etc.
Without calling the plugin's functions it would give something like this :
map / /\v
map ? ?\v
But I don't know how to call the plugin at the same time.