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 <[email protected]> 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
