diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/old/testdir/setup.vim | 5 | ||||
-rw-r--r-- | test/old/testdir/test_listchars.vim | 12 |
2 files changed, 6 insertions, 11 deletions
diff --git a/test/old/testdir/setup.vim b/test/old/testdir/setup.vim index 94fbf2bef1..4e8859a33e 100644 --- a/test/old/testdir/setup.vim +++ b/test/old/testdir/setup.vim @@ -4,7 +4,6 @@ if exists('s:did_load') set commentstring=/*%s*/ set complete=.,w,b,u,t,i set define=^\\s*#\\s*define - set directory& set directory^=. set display= set fillchars=vert:\|,foldsep:\|,fold:- @@ -21,13 +20,10 @@ if exists('s:did_load') set shortmess=filnxtToOS set sidescroll=0 set tags=./tags,tags - set undodir& set undodir^=. set wildoptions= set startofline - set sessionoptions& set sessionoptions+=options - set viewoptions& set viewoptions+=options set switchbuf= if g:testname !~ 'test_mapping.vim$' @@ -59,7 +55,6 @@ endfunc " Prevent Nvim log from writing to stderr. let $NVIM_LOG_FILE = exists($NVIM_LOG_FILE) ? $NVIM_LOG_FILE : 'Xnvim.log' - " Make sure 'runtimepath' and 'packpath' does not include $HOME. set rtp=$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after let &packpath = &rtp diff --git a/test/old/testdir/test_listchars.vim b/test/old/testdir/test_listchars.vim index eed4d7e30c..69f1df3098 100644 --- a/test/old/testdir/test_listchars.vim +++ b/test/old/testdir/test_listchars.vim @@ -506,7 +506,7 @@ func Test_listchars_composing() set list set listchars=eol:$,space:_,nbsp:= - + let nbsp1 = nr2char(0xa0) let nbsp2 = nr2char(0x202f) call append(0, [ @@ -533,22 +533,22 @@ endfunc func Test_listchars_window_local() %bw! set list listchars& - let l:default_listchars = &listchars " Accommodate Nvim default + let nvim_default = &listchars " Accommodate Nvim default new " set a local value for 'listchars' setlocal listchars=tab:+-,eol:# call s:CheckListCharsValue('tab:+-,eol:#') " When local value is reset, global value should be used setlocal listchars= - call s:CheckListCharsValue(l:default_listchars) " Accommodate Nvim default + call s:CheckListCharsValue(nvim_default) " Use 'setlocal <' to copy global value setlocal listchars=space:.,extends:> setlocal listchars< - call s:CheckListCharsValue(l:default_listchars) " Accommodate Nvim default + call s:CheckListCharsValue(nvim_default) " Use 'set <' to copy global value setlocal listchars=space:.,extends:> set listchars< - call s:CheckListCharsValue(l:default_listchars) " Accommodate Nvim default + call s:CheckListCharsValue(nvim_default) " Changing global setting should not change the local setting setlocal listchars=space:.,extends:> setglobal listchars=tab:+-,eol:# @@ -558,7 +558,7 @@ func Test_listchars_window_local() call s:CheckListCharsValue('space:.,extends:>') " clearing local value in one window should not change the other window set listchars& - call s:CheckListCharsValue(l:default_listchars) " Accommodate Nvim default + call s:CheckListCharsValue(nvim_default) close call s:CheckListCharsValue('space:.,extends:>') |