Wednesday, August 10, 2011

Re: "/ doesn't get filled

On Aug 11, 3:34 am, "John Beckett" <johnb.beck...@gmail.com> wrote:
> sinbad wrote:
> > it doesn't seem to be working. if you don't mind can you
> > provide more info.
>
> I can't explain why the tip works given the Help text quoted by
> Gary Johnson (which I have puzzled over before). However, it
> does, and using its technique, the following works.
>
> http://vim.wikia.com/wiki/Search_for_visually_selected_text
>
> nnoremap \jj :call Jj()<CR>/<C-R>/<CR>
> fun! Jj()
>   let @/ = expand('<cword>')
> endfun
>
> John

Thanks John, Worked just perfect.

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