Friday, March 22, 2013

Re: \ze position

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 :help searchpos() and :help search() for the various options when calling the function, such as the 'n' flag to not move the cursor.

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