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

Re: vim script equivalent of C __FILE__, __LINE__, __func__?

Expand Messages
  • Bram Moolenaar
    ... I don t think this is available. Surprising nobody asked for this. Since we have it would be logical to add . I ll make a patch for that.
    Message 1 of 3 , Nov 24, 2010
    • 0 Attachment
      Britton Kerin wrote:

      > I like to debug C using these. Does vim have some equivalent?
      >
      > Of course its a bit more challenging to implement than in C...
      > what I really want is to get a right light number for run time
      > die statement or error in perl. I was going to write a die
      > handler to give an actual script line number for embedded
      > perl rather than eval line number, but I don't want to hard-code
      > file names into files.

      I don't think this is available. Surprising nobody asked for this.

      Since we have <sfile> it would be logical to add <slnum>.
      I'll make a patch for that.

      --
      Kiss me twice. I'm schizophrenic.

      /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
      /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
      \\\ an exciting new programming language -- http://www.Zimbu.org ///
      \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

      --
      You received this message from the "vim_dev" 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.