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