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

Merge pull request #438 from anowlcalledjosh/fix-strikethrough
[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/vim-json/
6 set rtp+=../build/vader.vim/
7 set rtp-=~/.vim
8 set rtp-=~/.vim/after
9 let $LANG='en_US'
10 filetype on
11 filetype plugin on
12 filetype indent on
13 syntax on
14
15 function! Markdown_GetScriptID(fname) abort
16     let l:snlist = ''
17     redir => l:snlist
18     silent! scriptnames
19     redir END
20     let l:mx = '^\s*\(\d\+\):\s*\(.*\)$'
21     for l:line in split(l:snlist, "\n")
22         if stridx(substitute(l:line, '\\', '/', 'g'), a:fname) >= 0
23             return substitute(l:line, l:mx, '\1', '')
24         endif
25     endfor
26 endfunction
27 function! Markdown_GetFunc(fname, funcname) abort
28     return function('<SNR>' . Markdown_GetScriptID(a:fname) . '_' . a:funcname)
29 endfunction