From a4ac44a84f10fc4f2cab76fa7bfc2ffd09f86f53 Mon Sep 17 00:00:00 2001 From: Israel Chauca Fuentes Date: Mon, 1 Dec 2014 00:23:37 -0500 Subject: [PATCH] Add test plugins to the &rtp if they are present. --- test/_setup.vim | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/_setup.vim b/test/_setup.vim index 9a9e81c..7d0a31f 100644 --- a/test/_setup.vim +++ b/test/_setup.vim @@ -1,3 +1,12 @@ let &rtp = expand(':p:h:h') . ',' . &rtp . ',' . expand(':p:h:h') . '/after' set bs=2 ru plugin/delimitMate.vim +let runVimTests = expand(':p:h').'/build/runVimTests' +if isdirectory(runVimTests) + let &rtp = runVimTests . ',' . &rtp +endif +let vimTAP = expand(':p:h').'/build/VimTAP' +if isdirectory(vimTAP) + let &rtp = vimTAP . ',' . &rtp +endif +