X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/c0ddc5537f3f023228a36cae9da0f2b3d81702b0..d346b2cf5a80a3757a01a683a047a68dd3d2c276:/test/vimrc?ds=sidebyside diff --git a/test/vimrc b/test/vimrc index 86020ed..59c6163 100644 --- a/test/vimrc +++ b/test/vimrc @@ -1,8 +1,24 @@ set nocompatible set rtp+=../ -set rtp+=../../tabular/ -set rtp+=../../vader.vim/ +set rtp+=../build/tabular/ +set rtp+=../build/vader.vim/ filetype on filetype plugin on filetype indent on syntax on + +function! Markdown_GetScriptID(fname) abort + let a:snlist = '' + redir => a:snlist + silent! scriptnames + redir END + let a:mx = '^\s*\(\d\+\):\s*\(.*\)$' + for a:line in split(a:snlist, "\n") + if stridx(a:line, a:fname) >= 0 + return substitute(a:line, a:mx, '\1', '') + endif + endfor +endfunction +function! Markdown_GetFunc(fname, funcname) abort + return function('' . Markdown_GetScriptID(a:fname) . '_' . a:funcname) +endfunction