Loading ...
Sorry, an error occurred while loading the content.

how to get the last line number

Expand Messages
  • cyboman
    i m writing a small script and it requires the knowledge of the last line number. is there a command in vim i could use to get it? any help is appreciated --
    Message 1 of 3 , Jul 1, 2011
    • 0 Attachment
      i'm writing a small script and it requires the knowledge of the last
      line number. is there a command in vim i could use to get it?

      any help is appreciated

      --
      You received this message from the "vim_use" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    • Taylor Hedberg
      line( $ ) should do it. ... -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For
      Message 2 of 3 , Jul 1, 2011
      • 0 Attachment
        line('$') should do it.

        :help line()

        --
        You received this message from the "vim_use" maillist.
        Do not top-post! Type your reply below the text you are replying to.
        For more information, visit http://www.vim.org/maillist.php
      • cyboman
        ... thanks, it worked. -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For more
        Message 3 of 3 , Jul 1, 2011
        • 0 Attachment
          On Jul 1, 11:53 am, Taylor Hedberg <tmhedb...@...> wrote:
          > line('$') should do it.
          >
          > :help line()

          thanks, it worked.

          --
          You received this message from the "vim_use" maillist.
          Do not top-post! Type your reply below the text you are replying to.
          For more information, visit http://www.vim.org/maillist.php
        Your message has been successfully submitted and would be delivered to recipients shortly.