Don't rely on having the tmux/screen cwd being in the project directory.

Instead, let's just change the runtime path to include a pointer to the
top of the tree.
This commit is contained in:
John Szakmeister 2014-11-24 04:45:37 -05:00
parent 9028abd95e
commit 1f3f1ce641

View File

@ -341,7 +341,8 @@ class VimTestCase(unittest.TestCase, TempFileManager):
vim_config = []
vim_config.append('set nocompatible')
vim_config.append('set runtimepath=$VIMRUNTIME,.,%s' % self._temp_dir)
vim_config.append('set runtimepath=$VIMRUNTIME,%s,%s' % (
os.path.dirname(os.path.dirname(__file__)), self._temp_dir))
if self.plugins:
self._link_file(os.path.join(plugin_cache_dir(), "vim-pathogen", "autoload"), ".")