mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
Merge pull request #1699 from three-comrades/fix-viminfo
Use a local viminfo file when running the old tests.
This commit is contained in:
commit
b1cd16ab8d
@ -94,7 +94,7 @@ $(SCRIPTS) $(SCRIPTS_GUI): $(VIMPROG) test1.out
|
||||
|
||||
RM_ON_RUN := test.out X* viminfo
|
||||
RM_ON_START := tiny.vim small.vim mbyte.vim mzscheme.vim lua.vim test.ok
|
||||
RUN_VIM := VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(TOOL) $(VIMPROG) -u unix.vim -U NONE --noplugin -s dotest.in
|
||||
RUN_VIM := VIMRUNTIME=$(SCRIPTSOURCE); export VIMRUNTIME; $(TOOL) $(VIMPROG) -u unix.vim -U NONE -i viminfo --noplugin -s dotest.in
|
||||
|
||||
clean:
|
||||
-rm -rf *.out \
|
||||
|
@ -2,7 +2,7 @@ Tests for 'undolevel' setting being global-local
|
||||
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
:set nocompatible viminfo+=nviminfo ul=5
|
||||
:set ul=5
|
||||
:fu! FillBuffer()
|
||||
:for i in range(1,13)
|
||||
:put=i
|
||||
|
@ -5,7 +5,6 @@ Tests for 'directory' option.
|
||||
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
:set nocompatible viminfo+=nviminfo
|
||||
:set dir=.,~
|
||||
:/start of testfile/,/end of testfile/w! Xtest1
|
||||
:" do an ls of the current dir to find the swap file (should not be there)
|
||||
|
@ -12,7 +12,6 @@ STARTTEST
|
||||
:set fo+=tcroql tw=72
|
||||
/xxxxxxxx$
|
||||
0gq6kk
|
||||
:set nocp viminfo+=nviminfo
|
||||
:" undo/redo here to make the next undo only work on the following changes
|
||||
u
|
||||
:map gg :.,.+2s/^/x/<CR>kk:set tw=3<CR>gqq
|
||||
|
Binary file not shown.
@ -5,7 +5,6 @@ Test for joining lines and marks in them
|
||||
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
:set viminfo+=nviminfo
|
||||
:set nojoinspaces
|
||||
:set cpoptions-=j
|
||||
/firstline/
|
||||
|
@ -4,7 +4,7 @@ Test for 'cindent'
|
||||
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
:set nocompatible viminfo+=nviminfo modeline
|
||||
:set modeline
|
||||
:edit " read modeline
|
||||
/start of AUTO
|
||||
=/end of AUTO
|
||||
|
@ -22,7 +22,7 @@ Test for insert expansion
|
||||
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
:se nocp viminfo+=nviminfo cpt=.,w ff=unix | $-2,$w!Xtestfile | set ff&
|
||||
:se cpt=.,w ff=unix | $-2,$w!Xtestfile | set ff&
|
||||
:se cot=
|
||||
nO#include "Xtestfile"
|
||||
ru
|
||||
|
@ -4,7 +4,7 @@ See test99 for exactly the same test with re=2.
|
||||
|
||||
STARTTEST
|
||||
:so mbyte.vim
|
||||
:set nocompatible encoding=utf-8 termencoding=latin1 viminfo+=nviminfo
|
||||
:set encoding=utf-8 termencoding=latin1
|
||||
:set re=1
|
||||
/^1
|
||||
/a*b\{2}c\+/e
|
||||
|
@ -5,7 +5,7 @@ test49.failed, try to add one or more "G"s at the line ending in "test.out"
|
||||
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
:se nocp nomore viminfo+=nviminfo
|
||||
:se nomore
|
||||
:lang mess C
|
||||
:so test49.vim
|
||||
GGGGGGGGGGGGGG"rp:.-,$w! test.out
|
||||
|
@ -85,7 +85,6 @@ ggO---:0put b
|
||||
ggO---:0put a
|
||||
ggO---:w >>test.out
|
||||
:so small.vim
|
||||
:set nocp viminfo+=nviminfo
|
||||
:enew!
|
||||
oa
|
||||
:set ul=100
|
||||
|
@ -2,7 +2,6 @@ Smoke test for MzScheme interface and mzeval() function
|
||||
|
||||
STARTTEST
|
||||
:so mzscheme.vim
|
||||
:set nocompatible viminfo+=nviminfo
|
||||
:function! MzRequire()
|
||||
:redir => l:mzversion
|
||||
:mz (version)
|
||||
|
@ -6,7 +6,7 @@ STARTTEST
|
||||
:so small.vim
|
||||
:"
|
||||
:" Test 'undofile': first a simple one-line change.
|
||||
:set nocompatible viminfo+=nviminfo visualbell
|
||||
:set visualbell
|
||||
:set ul=100 undofile nomore
|
||||
:set ft=unix
|
||||
:e! Xtestfile
|
||||
|
@ -7,7 +7,6 @@ STARTTEST
|
||||
:"
|
||||
:" This will cause a few errors, do it silently.
|
||||
:set visualbell
|
||||
:set nocp viminfo+=nviminfo
|
||||
:"
|
||||
:function! DeleteDirectory(dir)
|
||||
: if has("win16") || has("win32") || has("win64") || has("dos16") || has("dos32")
|
||||
|
@ -7,7 +7,7 @@ STARTTEST
|
||||
:"
|
||||
:" This will cause a few errors, do it silently.
|
||||
:set visualbell
|
||||
:set nocp viminfo+=!,nviminfo
|
||||
:set viminfo+=!
|
||||
:let MY_GLOBAL_DICT={'foo': 1, 'bar': 0, 'longvarible': 1000}
|
||||
:" store a really long list, so line wrapping will occur in viminfo file
|
||||
:let MY_GLOBAL_LIST=range(1,100)
|
||||
|
@ -6,7 +6,7 @@ blocks.
|
||||
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
:set nocp fileformat=unix undolevels=-1 viminfo+=nviminfo
|
||||
:set fileformat=unix undolevels=-1
|
||||
:e! Xtest
|
||||
ggdG
|
||||
:let text = "\tabcdefghijklmnoparstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnoparstuvwxyz0123456789"
|
||||
|
@ -32,7 +32,7 @@ endfunc
|
||||
$put ='VimLeave done'
|
||||
write
|
||||
endfunc
|
||||
:set viminfo='100,nviminfo
|
||||
:set viminfo='100
|
||||
:au BufUnload * call CloseAll()
|
||||
:au VimLeave * call WriteToOut()
|
||||
:e small.vim
|
||||
|
@ -3,7 +3,6 @@ Test for Lua interface and luaeval() function
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
:so lua.vim
|
||||
:set nocompatible viminfo+=nviminfo
|
||||
:lua l = vim.list():add"item0":add"dictionary with list OK":add"item2"
|
||||
:lua h = vim.dict(); h.list = l
|
||||
:call garbagecollect()
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
:set hidden nocp nu rnu viminfo+=nviminfo
|
||||
:set hidden nu rnu
|
||||
:redir @a | set nu? rnu? | redir END
|
||||
:e! xx
|
||||
:redir @b | set nu? rnu? | redir END
|
||||
|
@ -17,7 +17,6 @@ Test cases:
|
||||
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
:set nocp viminfo+=nviminfo
|
||||
:
|
||||
:" User functions
|
||||
:function MoveToCap()
|
||||
|
@ -7,7 +7,7 @@ actually tried.
|
||||
STARTTEST
|
||||
:so small.vim
|
||||
:so mbyte.vim
|
||||
:set nocp encoding=utf-8 viminfo+=nviminfo nomore
|
||||
:set encoding=utf-8 nomore
|
||||
:" tl is a List of Lists with:
|
||||
:" 2: test auto/old/new 0: test auto/old 1: test auto/new
|
||||
:" regexp pattern
|
||||
|
@ -4,7 +4,7 @@ See test44 for exactly the same test with re=1.
|
||||
|
||||
STARTTEST
|
||||
:so mbyte.vim
|
||||
:set nocompatible encoding=utf-8 termencoding=latin1 viminfo+=nviminfo
|
||||
:set encoding=utf-8 termencoding=latin1
|
||||
:set re=2
|
||||
/^1
|
||||
/a*b\{2}c\+/e
|
||||
|
@ -81,7 +81,7 @@ STARTTEST
|
||||
:" https://groups.google.com/d/msg/vim_dev/ZOdg2mc9c9Y/TT8EhFjEy0IJ
|
||||
:only
|
||||
:vert 20new
|
||||
:set all& nocp breakindent briopt=min:10
|
||||
:set all& breakindent briopt=min:10
|
||||
:call setline(1, [" a\tb\tc\td\te", " z y x w v"])
|
||||
:/^\s*a
|
||||
fbgjyl:let line1 = @0
|
||||
|
@ -10,7 +10,6 @@ describe('expand file name', function()
|
||||
setup(clear)
|
||||
|
||||
it('is working', function()
|
||||
execute('set nocp')
|
||||
execute('!mkdir Xdir1')
|
||||
execute('!mkdir Xdir2')
|
||||
execute('!mkdir Xdir3')
|
||||
|
@ -21,7 +21,6 @@ describe('regexp with magic settings', function()
|
||||
9 foobar
|
||||
]])
|
||||
|
||||
execute('set nocompatible viminfo+=nviminfo')
|
||||
execute('/^1')
|
||||
execute([[/a*b\{2}c\+/e]])
|
||||
feed([[x/\Md\*e\{2}f\+/e<cr>]])
|
||||
|
Loading…
Reference in New Issue
Block a user