Does any command convert vimspec to normal vim script
lymslive opened this issue · comments
In the help doc says, ".vimspec" files will be converted to vim script, but how to save the converted ".vim" file?
There is no way to do it.
Why you need it?
emm, I've another idea to manage viml script library, and want to re-test the modules in vim-jp/vital.vim.
Most of test file in that vital is write in vimspec style, but I prefer to use viml script, as it is more common.
By the way, what the advantage of vimspec to viml?
If you want to convert a vimspec file just a once, you can call an internal function.
s:compile_specfile(specfile_path, result_path)
in autocmd/themis/style/vimspec.vim
is it. Add a global function to this file manually as below, and source the file and call it.
function CompileSpecfile(specfile_path, result_path)
call s:compile_specfile(a:specfile_path, a:result_path)
endfunction
" call like this
call CompileSpecfile('/full_path/to/input.vimspec', '/full_path/to/output.vim')
There is no plan to add this as a feature. Sorry.
what the advantage of vimspec to viml?
Vimspec can make nested tests more easily.
Vimspec can describe tests by space separated sentence.
well, thanks.