Re: \ze position

2013-03-22 Thread Axel Bender
Thanks for the feedback! I had hoped that - like in Perl - there is a [(possibly) undocumented] feature or a "trick" that lets you extract the start and the end positions (columns) after a *single* call to match(), using both \zs and \ze. I would prefer such a solution over having to determine

RE: \ze position

2013-03-22 Thread John Beckett
Axel Bender wrote: > 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()...). I forget the details, but I sweated blood working out how to avoid g

Re: \ze position

2013-03-22 Thread Ben Fritz
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

Re: \ze position

2013-03-22 Thread Axel Bender
@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

Re: \ze position

2013-03-22 Thread Ben Fritz
On Friday, March 22, 2013 8:15:44 AM UTC-5, Axel Bender wrote: > Is there any *native* (i.e. not programmed) way to access the column position > of the last match's \zs or \ze? You should be able to pass an empty string to the searchpos() function to re-use the last used search pattern. See :hel

\ze position

2013-03-22 Thread Axel Bender
Is there any *native* (i.e. not programmed) way to access the column position of the last match's \zs or \ze? -- -- 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