From: tsuraan Date: 2005-06-18T02:08:12+09:00 Subject: Re: ruby-vim line number On 6/17/05, Ryan Leavengood wrote: > Kent Sibilev said: > > Try > > > > :ruby p VIM::Window.current.cursor > > > > returns [row, col] array > > There is also a global for the current window, so this works too: > > $curwin.cursor > > Ryan > > Ah, I had thought that was for coordinates from the top-left corner of the screen, not the text buffer. Thanks! I guess I can get rid of the VIM::evaluate("line('.')") hack now :)