mirror of
1
0
Fork 0
ultimate-vim/sources_non_forked/vim-markdown/test/vimrc

30 lines
767 B
VimL
Raw Normal View History

2018-02-04 06:35:08 -05:00
set nocompatible
set rtp+=../
set rtp+=../build/tabular/
set rtp+=../build/vim-toml/
set rtp+=../build/vim-json/
set rtp+=../build/vader.vim/
2019-03-27 11:08:56 -04:00
set rtp-=~/.vim
set rtp-=~/.vim/after
2018-02-04 06:35:08 -05:00
let $LANG='en_US'
filetype on
filetype plugin on
filetype indent on
syntax on
function! Markdown_GetScriptID(fname) abort
2019-03-08 06:04:56 -05:00
let l:snlist = ''
redir => l:snlist
2018-02-04 06:35:08 -05:00
silent! scriptnames
redir END
2019-03-08 06:04:56 -05:00
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', '')
2018-02-04 06:35:08 -05:00
endif
endfor
endfunction
function! Markdown_GetFunc(fname, funcname) abort
return function('<SNR>' . Markdown_GetScriptID(a:fname) . '_' . a:funcname)
endfunction