1
0
Fork 0
mirror of synced 2024-11-15 21:48:57 -05:00
ultimate-vim/sources_non_forked/vim-markdown/test/vimrc

32 lines
778 B
VimL
Raw Normal View History

2018-02-04 06:35:08 -05:00
set nocompatible
2022-08-08 09:45:56 -04:00
2018-02-04 06:35:08 -05:00
let $LANG='en_US'
2022-08-08 09:45:56 -04:00
filetype off
set runtimepath+=../
set runtimepath+=../build/tabular/
set runtimepath+=../build/vim-toml/
set runtimepath+=../build/vim-json/
set runtimepath+=../build/vader.vim/
2018-02-04 06:35:08 -05:00
filetype on
2022-08-08 09:45:56 -04:00
filetype plugin indent on
syntax enable
2018-02-04 06:35:08 -05:00
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
2022-08-08 09:45:56 -04:00
2018-02-04 06:35:08 -05:00
function! Markdown_GetFunc(fname, funcname) abort
return function('<SNR>' . Markdown_GetScriptID(a:fname) . '_' . a:funcname)
endfunction