From: Kent Sibilev Date: 2005-06-18T01:35:12+09:00 Subject: Re: ruby-vim line number Try :ruby p VIM::Window.current.cursor returns [row, col] array Kent. On 6/17/05, tsuraan 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? > >