X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/df9dab8972c83f198aa05e166acd46e59ec4bd80..e380b38bc4d60f6cf0274cf6fb0af57feac49967:/test/vimrc?ds=sidebyside diff --git a/test/vimrc b/test/vimrc index 44df1b6..638ab3f 100644 --- a/test/vimrc +++ b/test/vimrc @@ -1,21 +1,26 @@ 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 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(a:line, 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