Tuesday, August 9, 2011

Re: mapping / and ?

On 2011-08-08, sinbad wrote:
> hi,
>
> i want to map forward/backward search / and ? to a function.
> basically i want to set a variable whenever i search and rest
> of the / and ? functionality should be same. how can i do that.
> is there any better way to do it rather than mapping /, like
> constructor
> function being called every time i search.

See $VIMRUNTIME/macros/less.vim for a good example of mapping / and
? to functions.

Regards,
Gary

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

No comments: