Kent Sibilev
6/17/2005 4:35:00 PM
Try
:ruby p VIM::Window.current.cursor
returns [row, col] array
Kent.
On 6/17/05, tsuraan <tsuraan@gmail.com> wrote:
> This might be more appropriate on a vim list, but I'll give it a go here..
>
> Does anyone know a way, using vim-ruby, to determine what line of a
> given buffer is currently active?
>
> I'm jumping around in a huge cpp file using ctags, and I thought it
> would be really nice to write a ruby script to say what function I'm
> currently looking at, but I can't figure out how to get the current
> line number into my ruby script. Any ideas?
>
>