Friday, March 22, 2013

Re: \ze position

On Friday, March 22, 2013 10:51:07 AM UTC-5, Axel Bender wrote:
> @ben
>
> Sorry, I was too unspecific. I want to use the \z[es] from the last match() to prevent searching for the same - complicated - expression two times (once with match() the second time with matchend()...).
>
> matchlist() might come to the rescue, but I expect that having access to these column positions would be faster.

I don't know of a way to get both the beginning and end column of a match with a single function call.

What are they needed for? Maybe there is a way to do what you need without them.

As a general rule doing as much as possible with a built-in function is actually faster than doing it with manual vimscript, but obviously there are exceptions.

--
--
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/groups/opt_out.

No comments:

Post a Comment