]> git.madduck.net Git - etc/vim.git/blob - 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:

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