]> git.madduck.net Git - etc/vim.git/blob - .vim/bundle/vim-markdown/test/vimrc

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Merge commit 'a39f715c13be3352193ffd9c5b7536b8786eff64' as '.vim/bundle/vim-lsp'
[etc/vim.git] / .vim / bundle / vim-markdown / test / vimrc
1 set nocompatible
2
3 let $LANG='en_US'
4
5 filetype off
6 set runtimepath+=../
7 set runtimepath+=../build/tabular/
8 set runtimepath+=../build/vim-toml/
9 set runtimepath+=../build/vim-json/
10 set runtimepath+=../build/vader.vim/
11 filetype on
12
13 filetype plugin indent on
14 syntax enable
15
16 function! Markdown_GetScriptID(fname) abort
17     let l:snlist = ''
18     redir => l:snlist
19     silent! scriptnames
20     redir END
21     let l:mx = '^\s*\(\d\+\):\s*\(.*\)$'
22     for l:line in split(l:snlist, "\n")
23         if stridx(substitute(l:line, '\\', '/', 'g'), a:fname) >= 0
24             return substitute(l:line, l:mx, '\1', '')
25         endif
26     endfor
27 endfunction
28
29 function! Markdown_GetFunc(fname, funcname) abort
30     return function('<SNR>' . Markdown_GetScriptID(a:fname) . '_' . a:funcname)
31 endfunction