]> 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 #255 from alexconst/feat/ft_dict_ini
[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 let $LANG='en_US'
8 filetype on
9 filetype plugin on
10 filetype indent on
11 syntax on
12
13 function! Markdown_GetScriptID(fname) abort
14     let a:snlist = ''
15     redir => a:snlist
16     silent! scriptnames
17     redir END
18     let a:mx = '^\s*\(\d\+\):\s*\(.*\)$'
19     for a:line in split(a:snlist, "\n")
20         if stridx(substitute(a:line, '\\', '/', 'g'), a:fname) >= 0
21             return substitute(a:line, a:mx, '\1', '')
22         endif
23     endfor
24 endfunction
25 function! Markdown_GetFunc(fname, funcname) abort
26     return function('<SNR>' . Markdown_GetScriptID(a:fname) . '_' . a:funcname)
27 endfunction