1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 20:30:05 +08:00

test main vimrc

This commit is contained in:
wsdjeg 2017-10-10 20:57:09 +08:00
parent e975410af6
commit 764a7b399b
3 changed files with 3 additions and 22 deletions

View File

@ -64,5 +64,4 @@ endif
call zvim#util#source_rc('commands.vim')
filetype plugin indent on
syntax on
" vim:set et sw=2 cc=80:

3
test/init.vader Normal file
View File

@ -0,0 +1,3 @@
Execute ( SpaceVim api: vim#buffer open ):
source init.vim
AssertEqual fnamemodify(g:Config_Main_Home, ':.'), 'config'

View File

@ -1,21 +0,0 @@
Execute (Clear search history):
for _ in range(&history)
call histdel('/', -1)
endfor
Given (Search and destroy):
I'm a street walking cheetah with a heart full of napalm
I'm a runaway son of the nuclear A-bomb
I'm a world's forgotten boy
The one who searches and destroys
Do (Searches):
/street\<CR>
/walking\<CR>
/cheetah\<CR>
/runaway\<CR>
/search\<CR>
Execute (Assertions):
Log string(map(range(1, &history), 'histget("/", - v:val)'))
AssertEqual 'search', histget('/', -1)