vimscript, screen line number

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

vimscript, screen line number

iler.ml

How do I calculate which file line corresponds to 1st line of screen.
Thanks
Yakov
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: vimscript, screen line number

Teemu Likonen

On 2009-04-04 12:00 (-0700), Yakov wrote:

> How do I calculate which file line corresponds to 1st line of screen.

Do you mean

    line('w0')

or something else?

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

Re: vimscript, screen line number

iler.ml

On Apr 4, 10:09 pm, Teemu Likonen <[hidden email]> wrote:
> On 2009-04-04 12:00 (-0700), Yakov wrote:
>
> > How do I calculate which file line corresponds to 1st line of screen.
>
> Do you mean
>
>     line('w0')
>
> or something else?

Yes thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---