Sunday, September 21, 2014

Re: Searching for any one of a set or words ?

On 2014-09-22 02:10, Philip Rhoades wrote:
> OK, I can get that manual method to work, but I still want to know
> what was wrong with the original complex let statement:
>
> :let @/ = '\<\%(' . @a, '\.[*') . '\)\>'
>
> - this works:
>
> :let @/ = '\<\%(' . @a . '\)\>'
>
> - what was the extra:
>
> ", '\.[*')"
>
> supposed to do?

Doh! I see...I'd originally used the escape() function but realized
I was escaping the "\" characters that I still needed. So I removed
the function opening but accidentally failed to remove the closing
second-half of the call. So sorry for the confusion.

-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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment