2016-07-12 22:51:22 +02:00
|
|
|
" Common preparations for running tests.
|
|
|
|
|
|
2016-08-06 19:01:55 +02:00
|
|
|
" Make sure 'runtimepath' and 'packpath' does not include $HOME.
|
2016-07-12 22:51:22 +02:00
|
|
|
set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after
|
2016-08-06 19:45:31 +02:00
|
|
|
if has('packages')
|
|
|
|
|
let &packpath = &rtp
|
|
|
|
|
endif
|
2016-07-12 22:51:22 +02:00
|
|
|
|
|
|
|
|
" Only when the +eval feature is present.
|
|
|
|
|
if 1
|
|
|
|
|
" Make sure $HOME does not get read or written.
|
|
|
|
|
let $HOME = '/does/not/exist'
|
|
|
|
|
endif
|
|
|
|
|
|