On Thursday 02 April 2009 5:43 pm, Spiros Bousbouras wrote:
> 
> How can you find from within a script how many lines
> the current buffer has ? One solution is
> len(getbufline(bufname('%') , 1 , '$'))
> but this seems wasteful.

one way would be to

    let l = line('$')

sc



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

Reply via email to