junegunn / vader.vim

A simple Vimscript test framework
589 stars 40 forks source link

Create vimscript command interface? #208

Closed deoxys314 closed 4 years ago

deoxys314 commented 4 years ago

The option to run $ vim -u $(whatever) -c 'Vader!' is very nifty and useful for integrating with shell scripts. Is there a similar interface to call Vader from within Vimscript files and deal with the result? vader#run() doesn't seem to return anything, so my guess is no.

This is a very niche case, but my end goal is portability: wherever Vim runs at all, so too do my tests and my test script. I am often switching between Windows, OSX and Linux, which have different scripting options, or different implementations of sh and so on.

deoxys314 commented 4 years ago

You know, I think I can get what I need from the g:vader_result variable.

I still think a command interface could be useful, but I'm going to close this so as not to clutter the issues.