Anyone know how to get AutoHotkey to output errors to Vim's quickfix window? I kind of got it working by setting makeprg...
Code: Select all
setlocal makeprg=autohotkey\ /ErrorStdOut\ %:p:S
This works as expected when there is an error, but when there are no errors, Vim just "hangs" there with a console window open, waiting for the script to exit. Problem is, I don't want my AHK script to exit since it has hotkeys and stuff.
I also tried the following with similar results as above:
Code: Select all
:cexpr system("autohotkey /ErrorStdOut " . shellescape(expand("%:p")))
Currently I'm running scripts with:
...which works great, but it opens a GUI dialog box and shows the errors. I thought maybe I could add /ErrorStdOut and redirect stdout to a file that's later opened by quickfix (with :cfile), but that doesn't seem to work with :!start
Any ideas?