Files
neovim/test/old/testdir/unix.vim
bfredl 0ce48e7a9c fix(oldtests): move useful settings from ignored unix.vim
the unix.vim file was probably accidentally ignored at some point.
An actual invokation of nvim-under-test would in practice look like

  ["/path/to/neovim/build/bin/nvim", "-u", "unix.vim", "-U", "NONE", "-i", "NONE", "--noplugin", "--headless", "-u", "NONE", "--cmd", "set shortmess-=F", "-S", "runtest.vim", "test_arabic.vim"]

but -u NONE cancels out the earlier -u unix.vim

By now, too many tests rely on specific behavior from "NONE", so copy in
the useful parts of unix.vim to the cmdline again. also, some tests
conflict with `directory=.` (or even `directory=Xtempswapdir`) so don't use that.

`-U NONE` is dead code in Nvim, remove it.
2026-04-08 13:12:14 +02:00

16 lines
386 B
VimL

" Settings for test script execution
" Always use "sh", don't use the value of "$SHELL".
set shell=sh
if has('win32')
set shellcmdflag=-c shellxquote= shellxescape= shellquote=
let &shellredir = '>%s 2>&1'
set shellslash
endif
" Don't depend on system locale, always use utf-8
set encoding=utf-8
" Use safer defaults for various directories
set backupdir=. undodir=. viewdir=.