Yeah, I've been tinkering with a vim extension (not mine originally) that compiles and runs from vim.
here's what I have from those scripts:
qb64 -c -o outputfilename inputfilename
switches
-o output exe filename
-c Compile file
-x As -c, but use the console instead of a graphical window for pr>
-z Do not compile generated C++ code.
-q Compile for Qloud.
-g Do not include graphics runtime (equivalent to $CONSOLE:ONLY)
All switches imply -c; -z and -q imply -x.
Options must proceed the filename.
-- can be used as a dummy option to force the next thing to be a file