Skip to content

Instantly share code, notes, and snippets.

@dahu
Created April 7, 2012 02:23
Show Gist options
  • Save dahu/2324560 to your computer and use it in GitHub Desktop.
Save dahu/2324560 to your computer and use it in GitHub Desktop.
runVimTestsSetup.vim
function! PrependToRTP(name)
let &runtimepath = a:name . ',' . &rtp
endfunction
" Prepend tests repos to &rtp
call PrependToRTP(expand('$HOME').'/projects/vim/plugins/runVimTests')
call PrependToRTP(expand('$HOME').'/projects/vim/plugins/vimtap')
" Glabal vars for commonly tested plugins
let runVimTests_common = {}
let runVimTests_common['vimpeg'] = expand('$HOME').'/projects/vim/plugins/vimpeg'
" Include the plugin in which the /test/_setup.vim resides
call PrependToRTP(expand('%:p:h:h'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment