install.fairie/dotfiles/.vim/plugged/vim-markdown/test/vimrc
Git E2E Dev Test Username 78b956b821 git subrepo clone https://github.com/plasticboy/vim-markdown.git ./dotfiles/.vim/plugged/vim-markdown
subrepo:
  subdir:   "dotfiles/.vim/plugged/vim-markdown"
  merged:   "c3f83ebb"
upstream:
  origin:   "https://github.com/plasticboy/vim-markdown.git"
  branch:   "master"
  commit:   "c3f83ebb"
git-subrepo:
  version:  "0.4.3"
  origin:   "???"
  commit:   "???"
2022-10-18 10:36:20 -04:00

31 lines
778 B
VimL

set nocompatible
let $LANG='en_US'
filetype off
set runtimepath+=../
set runtimepath+=../build/tabular/
set runtimepath+=../build/vim-toml/
set runtimepath+=../build/vim-json/
set runtimepath+=../build/vader.vim/
filetype on
filetype plugin indent on
syntax enable
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('<SNR>' . Markdown_GetScriptID(a:fname) . '_' . a:funcname)
endfunction