Quantcast

getting line number of a searched pattern

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

getting line number of a searched pattern

Ni Va
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Loading...