diff --git a/config/main.vim b/config/main.vim index 947589258..ad14c4f6c 100644 --- a/config/main.vim +++ b/config/main.vim @@ -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: diff --git a/test/init.vader b/test/init.vader new file mode 100644 index 000000000..e189b2340 --- /dev/null +++ b/test/init.vader @@ -0,0 +1,3 @@ +Execute ( SpaceVim api: vim#buffer open ): + source init.vim + AssertEqual fnamemodify(g:Config_Main_Home, ':.'), 'config' diff --git a/test/test.vader b/test/test.vader deleted file mode 100644 index 740bcfa67..000000000 --- a/test/test.vader +++ /dev/null @@ -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\ - /walking\ - /cheetah\ - /runaway\ - /search\ - -Execute (Assertions): - Log string(map(range(1, &history), 'histget("/", - v:val)')) - AssertEqual 'search', histget('/', -1)