bairui

runVimTests_setup.vim

Feb 6th, 2012
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function! PrependToRTP(name)
  2.   let &runtimepath = a:name . ',' . &rtp
  3. endfunction
  4.  
  5. " Prepend tests repos to &rtp
  6. call PrependToRTP(expand('$HOME').'/projects/vim/plugins/runVimTests')
  7. call PrependToRTP(expand('$HOME').'/projects/vim/plugins/vimtap')
  8.  
  9. " Glabal vars for commonly tested plugins
  10. let runVimTests_common = {}
  11. let runVimTests_common['vimpeg'] = expand('$HOME').'/projects/vim/plugins/vimpeg'
  12.  
  13. " Include the plugin in which the   /test/_setup.vim   resides
  14. call PrependToRTP(expand('%:p:h:h'))
Advertisement
Add Comment
Please, Sign In to add comment