]> 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:

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