sinbad wrote:
> why doesn't the "/ register filled with the current search.
> with the following mapping. should i do something special
>
> nmap \jj :call Jj()

See the second solution at:
http://vim.wikia.com/index.php?title=Search_for_visually_selected_text

You put this at the end of the mapping:
    /<C-R>/<CR>

The first slash starts a search, and the second inserts the
contents of the search register (set by the function).

John

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