xref: /vim-8.2.3635/src/testdir/setup.vim (revision cb03397a)
1" Common preparations for running tests.
2
3" Make sure 'runtimepath' and 'packpath' does not include $HOME.
4set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after
5if has('packages')
6  let &packpath = &rtp
7endif
8
9" Only when the +eval feature is present.
10if 1
11  " Make sure $HOME does not get read or written.
12  let $HOME = '/does/not/exist'
13endif
14
15