X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/fc34c5a75a10b4e15530f0209f0ea1b70fa4f077..f71f25b87df3bd2a5315fdf432f0de3c35434345:/test/vimrc?ds=sidebyside diff --git a/test/vimrc b/test/vimrc index 524fe6c..638ab3f 100644 --- a/test/vimrc +++ b/test/vimrc @@ -1,7 +1,11 @@ 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 @@ -9,14 +13,14 @@ filetype indent on syntax on function! Markdown_GetScriptID(fname) abort - let a:snlist = '' - redir => a:snlist + let l:snlist = '' + redir => l:snlist silent! scriptnames redir END - let a:mx = '^\s*\(\d\+\):\s*\(.*\)$' - for a:line in split(a:snlist, "\n") - if stridx(substitute(a:line, '\\', '/', 'g'), a:fname) >= 0 - return substitute(a:line, a:mx, '\1', '') + 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