From 4c80971765721cdde9051f5f2a558f64a8565b0c Mon Sep 17 00:00:00 2001 From: itchyny Date: Mon, 21 Mar 2016 15:33:44 +0900 Subject: [PATCH] add .themisrc --- test/.themisrc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 test/.themisrc diff --git a/test/.themisrc b/test/.themisrc new file mode 100644 index 0000000..c226c08 --- /dev/null +++ b/test/.themisrc @@ -0,0 +1,20 @@ +let s:sids = {} +function! s:sid(path) abort + if has_key(s:sids, a:path) + return s:sids[a:path] + endif + redir => scriptnames + silent! scriptnames + redir END + for line in split(scriptnames, '\n') + if line =~# a:path + let sid = matchstr(line, '\v^\s*\zs\d+\ze') + let s:sids[a:path] = sid + return sid + endif + endfor +endfunction + +function! SID(name) abort + return function(printf("\%d_%s", s:sid('autoload/lightline.vim'), a:name)) +endfunction