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

Re: [PATCH] add new vimscript function getsid()

Expand Messages
  • tyru
    Thanks for the review. I updated the patch. ... -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text you
    Message 1 of 5 , Oct 3, 2011
      Thanks for the review.
      I updated the patch.

      On Tue, Oct 4, 2011 at 4:19 AM, Yasuhiro MATSUMOTO <mattn.jp@...> wrote:
      > It prefer to return zero for invalid cases.
      >
      > let sid getsid()
      > if sid
      >  " using sid
      > endif
      >
      > On Sun, Oct 2, 2011 at 1:52 PM, tyru <tyru.exe@...> wrote:
      >> Hi list.
      >>
      >> Vimscript does not have the easy way to get current script ID.
      >> so :help <SID> recommends that add s:SID() and use it.
      >> but it is a little bit hacky thing.
      >>
      >> so I want to add new vimscript function getsid().
      >> Attached patch added the function and its help.
      >> Could you include this patch?
      >>
      >> --
      >> 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
      >>
      >
      >
      >
      > --
      > - Yasuhiro Matsumoto
      >
      > --
      > 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
      >

      --
      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
    • Yukihiro Nakadaira
      I don t know if it is useful, anyway. Vim has expand( ) and expand( ). So perhaps expand( ) is more preferable? -- Yukihiro Nakadaira -
      Message 2 of 5 , Oct 5, 2011
        I don't know if it is useful, anyway.
        Vim has expand('<sfile>') and expand('<slnum>').
        So perhaps expand('<sid>') is more preferable?

        --
        Yukihiro Nakadaira - yukihiro.nakadaira@...

        --
        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
      • mattn
        +1 to yukihiro nakadaira. -- You received this message from the vim_dev maillist. Do not top-post! Type your reply below the text you are replying to. For
        Message 3 of 5 , Oct 5, 2011
          +1 to yukihiro nakadaira.

          --
          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.