Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

57 lines (56 sloc) 1.834 kb
let g:vim_addon_manager={}
let g:vim_addon_manager.known='vam-test-known'
if executable('git')
let g:vim_addon_manager.plugin_sources={
\'vam-test-known': {'type': 'git',
\ 'url': 'git://vimpluginloader.git.sourceforge.net/gitroot/vimpluginloader/vam-test-repository/',},
\}
else
let g:vim_addon_manager.plugin_sources={
\'vam-test-known': {'type': 'archive',
\ 'url': 'http://downloads.sourceforge.net/project/vimpluginloader/vam-test/vam-test-repository.tar.gz',
\ 'version': '9999',
\ 'archive_name': 'vam-test-known.tar.gz'},
\}
endif
let g:vim_addon_manager.auto_install=1
let g:vim_addon_manager.do_diff=0
let g:vim_addon_manager.plugin_root_dir=fnamemodify('./vam-'.g:curtest, ':p')[:-2]
let g:vim_addon_manager.shell_commands_run_method='system'
let s:outfile=fnamemodify(g:outfile, ':p')
let s:errfile=fnamemodify(g:outfile, ':p:r').'.fail'
function WriteFile(...)
let r=[]
if filereadable(s:outfile)
let r+=readfile(s:outfile, 'b')
endif
if type(a:1)==type([])
let r+=a:1
else
let r+=a:000
endif
call writefile(r, s:outfile, 'b')
return ''
endfunction
command -bar -nargs=1 W :call WriteFile(<q-args>)
function WriteGlob()
cd `="vam-".g:curtest`
call WriteFile(split(glob('./**'), "\n"))
cd ..
endfunction
function Try(cmd)
let failed=1
try
execute a:cmd
let failed=0
finally
" Unlike :catch this won't loose trace
if failed
call writefile([], s:errfile, 'b')
endif
endtry
endfunction
command -nargs=1 Try :call Try(<q-args>)
if filereadable(g:curtest.'.vim')
source `=g:curtest.".vim"`
endif
Jump to Line
Something went wrong with that request. Please try again.