>
> You can do the following in a script which, while 2 steps, I find
> equally clear as Tony's use of search()
>
> let @/=@"
> /
>
Yes, the terser, the better
>
> As a side-note, depending on your line's contents, you may have
> to wrap the value of @" in a call to escape(), as in
>
> let @/=escape(@/, '.\[*~')
> call search(escape(@/, '.\[*~'))
>
But the verboser, the worser : )
Thanks for this variant, Tim
--
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:
Post a Comment