Monday, March 20, 2017

getting line number of a searched pattern

Hi,

In this kind of buff :

foonothing
foobar
bar
foo << Here is my cursor


I would like to know the linenumber of pattern foonothing with backward search and not moving my cursor position so don't use call search(pattern, 'bn')

Thanks

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