diff options
| author | James McCoy <jamessan@jamessan.com> | 2018-07-27 10:44:29 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-27 10:44:29 -0400 |
| commit | 594859fdd6b0062b326133682edfeaf1dfa86579 (patch) | |
| tree | 1213ec3f6ab73c9fcfb2a77f0f0c1c5cba5c18e1 /src/nvim/testdir/setup.vim | |
| parent | e42688fcf38013f9c4eef8f97f92e686a858ffad (diff) | |
| parent | 30bba7a10cfa3af97fdcbb39afb9d0146b2af509 (diff) | |
| download | rneovim-594859fdd6b0062b326133682edfeaf1dfa86579.tar.gz rneovim-594859fdd6b0062b326133682edfeaf1dfa86579.tar.bz2 rneovim-594859fdd6b0062b326133682edfeaf1dfa86579.zip | |
Merge pull request #8485 from janlazo/vim-8.0.1012
[RDY] vim-patch:8.0.{805,806,810,1012,1017}
Diffstat (limited to 'src/nvim/testdir/setup.vim')
| -rw-r--r-- | src/nvim/testdir/setup.vim | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/nvim/testdir/setup.vim b/src/nvim/testdir/setup.vim index aac9fefef4..f3cc7da70f 100644 --- a/src/nvim/testdir/setup.vim +++ b/src/nvim/testdir/setup.vim @@ -1,5 +1,11 @@ " Common preparations for running tests. +" Only load this once. +if exists('s:did_load') + finish +endif +let s:did_load = 1 + " Align Nvim defaults to Vim. set sidescroll=0 set directory^=. @@ -16,7 +22,10 @@ set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after let &packpath = &rtp " Make sure $HOME does not get read or written. -let $HOME = '/does/not/exist' +let $HOME = expand(getcwd() . '/XfakeHOME') +if !isdirectory($HOME) + call mkdir($HOME) +endif " Use default shell on Windows to avoid segfault, caused by TUI if has('win32') |