X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/8f402f6e0e976765d3889a23bc29699e8fd96b63..2ce54215a99b0a31154a468ad0aa56974c6fbefc:/.vim/bundle/vim-markdown/test/vimrc diff --git a/.vim/bundle/vim-markdown/test/vimrc b/.vim/bundle/vim-markdown/test/vimrc new file mode 100644 index 0000000..638ab3f --- /dev/null +++ b/.vim/bundle/vim-markdown/test/vimrc @@ -0,0 +1,29 @@ +set nocompatible +set rtp+=../ +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